| Trees | Indices | Help |
|
|---|
|
|
User-level analysis commands, typically for measuring or generating SheetViews.
Most of this file consists of commands for creating SheetViews, paired with a template for how to construct plots from these SheetViews.
For instance, the implementation of Activity plots consists of the update_activity() command plus the Activity PlotGroupTemplate. The update_activity() command reads the activity array of each Sheet and makes a corresponding SheetView to put in the Sheet's sheet_views dictionary, while the Activity PlotGroupTemplate specifies which SheetViews should be plotted in which combination. See the help for PlotGroupTemplate for more information.
Some of the commands are ordinary Python functions, but the rest are ParameterizedFunctions, which act like Python functions but support Parameters with defaults, bounds, inheritance, etc. These commands are usually grouped together using inheritance so that they share a set of parameters and some code, and only the bits that are specific to that particular plot or analysis appear below. See the superclasses for the rest of the parameters and code.
$Id: analysis.py 11316 2010-07-27 17:52:53Z ceball $
Version: $Revision: 11316 $
|
|||
|
ParameterizedFunction Acts like a Python function, but with arguments that are Parameters. |
|||
|
UnitMeasurementCommand A callable Parameterized command for measuring or plotting specified units from a Sheet. |
|||
|
ProjectionSheetMeasurementCommand A callable Parameterized command for measuring or plotting a specified Sheet. |
|||
|
SinusoidalMeasureResponseCommand Parameterized command for presenting sine gratings and measuring responses. |
|||
|
PositionMeasurementCommand Parameterized command for measuring topographic position. |
|||
|
SingleInputResponseCommand A callable Parameterized command for measuring the response to input on a specified Sheet. |
|||
|
save_plotgroup Convenience command for saving a set of plots to disk. |
|||
|
update_connectionfields A callable Parameterized command for measuring or plotting a unit from a Projection. |
|||
|
update_projection A callable Parameterized command for measuring or plotting units from a Projection. |
|||
|
update_projectionactivity Add SheetViews for all of the Projections of the ProjectionSheet specified by the sheet parameter, for use in template-based plots. |
|||
|
measure_rfs Map receptive fields by reverse correlation. |
|||
|
measure_sine_pref Measure preferences for sine gratings in various combinations. |
|||
|
measure_or_pref Measure an orientation preference map by collating the response to patterns. |
|||
|
measure_od_pref Measure an ocular dominance preference map by collating the response to patterns. |
|||
|
measure_phasedisparity Measure a phase disparity preference map by collating the response to patterns. |
|||
|
measure_dr_pref Measure a direction preference map by collating the response to patterns. |
|||
|
measure_hue_pref Measure a hue preference map by collating the response to patterns. |
|||
|
measure_corner_or_pref Measure a corner preference map by collating the response to patterns. |
|||
|
measure_corner_angle_pref Generate the preference map for angle shapes, by collating the response to patterns. |
|||
|
measure_frequency_pref Measure a frequency preference and selectivity map |
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
pi = 3.14159265359
|
|||
maximum = <ufunc 'maximum'>
|
|||
plotgroups = [('Activity', TemplatePlotGroup(auto_refresh=True
|
|||
gaussian_corner = Composite(bounds=BoundingBox(radius=0.5), ge
|
|||
pg = TemplatePlotGroup(auto_refresh=False, category='Preferenc
|
|||
__package__ =
|
|||
k =
|
|||
|
|||
Create a new PlotGroup and add it to the plotgroups list. Convenience function to make it simpler to use the name of the PlotGroup as the key in the plotgroups list. template_plot_type: Whether the plots are bitmap images or curves ('curve'). |
Helper function for save_plotgroup. Comparison operator for deciding whether make_plots(update==False) is safe for one plotgroup if the other has already been updated. Treats plotgroups as the same if the specified list of attributes (if present) match in both plotgroups. |
Estimate the value of a feature from the current activity pattern on a sheet. The specified preference_map should be measured before this function is called. If weighted_average is False, the feature value returned is the value of the preference_map at the maximally active location. If weighted_average is True, the feature value is estimated by weighting the preference_map by the current activity level, and averaging the result across all units in the sheet. The axis_bounds specify the allowable range of the feature values in the preference_map. If cyclic is true, a vector average is used; otherwise an arithmetic weighted average is used. For instance, if preference_map is OrientationPreference (a cyclic quantity), then the result will be the vector average of the activated orientations. For an orientation map this value should be an estimate of the orientation present on the input. |
Make a map of neural activity available for each sheet, for use in template-based plots. This command simply asks each sheet for a copy of its activity matrix, and then makes it available for plotting. Of course, for some sheets providing this information may be non-trivial, e.g. if they need to average over recent spiking activity. |
Return the orientation corresponding to the given direction. Wraps the value to be in the range [0,pi), and rounds it slightly so that wrapped values are precisely the same (to avoid biases caused by vector averaging with keep_peak=True). Note that in very rare cases (1 in 10^-13?), rounding could lead to different values for a wrapped quantity, and thus give a heavily biased orientation map. In that case, just choose a different number of directions to test, to avoid that floating point boundary. |
|
|||
plotgroups
|
gaussian_corner
|
pg
|
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Thu Aug 5 14:59:19 2010 | http://epydoc.sourceforge.net |