topo :: command :: pylabplot :: measure_contrast_response :: Class measure_contrast_response
[hide private]
[frames] | no frames]

Class measure_contrast_response

source code


Measures contrast response curves for a particular unit.

Uses a circular sine grating stimulus at the preferred orientation and retinal position of the specified unit. Orientation and position preference must be calulated before measuring contrast response.

The curve can be plotted at various different values of the contrast (or actually any other parameter) of the stimulus. If using contrast and the network contains an LGN layer, then one would usually specify weber_contrast as the contrast_parameter. If there is no explicit LGN, then scale (offset=0.0) can be used to define the contrast. Other relevant contrast definitions (or other parameters) can also be used, provided they are defined in PatternPresenter and the units parameter is changed as appropriate.

Nested Classes [hide private]

Inherited from param.parameterized.Parameterized: __metaclass__

Instance Methods [hide private]
 
__call__(self, **params)
Measure the response to the specified pattern and store the data in each sheet.
source code
 
_feature_list(self, p)
Return the list of features to vary; must be implemented by each subclass.
source code

Inherited from param.parameterized.ParameterizedFunction: __reduce__, __str__, script_repr

Inherited from param.parameterized.Parameterized: __getstate__, __init__, __repr__, __setstate__, debug, defaults, force_new_dynamic_value, get_param_values, get_value_generator, inspect_value, message, print_param_values, set_default, set_dynamic_time_fn, set_param, state_pop, state_push, verbose, warning

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Class Methods [hide private]

Inherited from param.parameterized.ParameterizedFunction: instance

Inherited from param.parameterized.Parameterized: params, print_param_defaults

Static Methods [hide private]

Inherited from param.parameterized.ParameterizedFunction: __new__

Class Variables [hide private]
  static_parameters = param.List(default= ["size", "x", "y"])
List of names of parameters of this class to pass to the pattern_presenter as static parameters, i.e.
  contrasts = param.List(class_= int, default= [10, 20, 30, 40, ...
  relative_orientations = param.List(class_= float, default= [0....
  x_axis = param.String(default= 'contrast', constant= True)
Parameter to use for the x axis of tuning curves.
  units = param.String(default= " rad")
Units for labeling the curve_parameters in figure legends.
  __params = {'apply_output_fns': <param.Boolean object at 0xb20...
dict() -> new empty dictionary.
  name = <param.parameterized.String object at 0xb32e62c>
String identifier for this object.

Inherited from analysis.featureresponses.UnitCurveCommand: coords, pattern_presenter, size

Inherited from analysis.featureresponses.FeatureCurveCommand: curve_parameters, num_orientation, sheet

Inherited from analysis.featureresponses.SinusoidalMeasureResponseCommand: frequencies, num_phase, scale

Inherited from analysis.featureresponses.MeasureResponseCommand: apply_output_fns, display, duration, generator_sheets, offset, sheet_views_prefix, subplot, weighted_average

Inherited from param.parameterized.Parameterized: print_level

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__call__(self, **params)
(Call operator)

source code 
Measure the response to the specified pattern and store the data in each sheet.
Overrides: param.parameterized.ParameterizedFunction.__call__

_feature_list(self, p)

source code 
Return the list of features to vary; must be implemented by each subclass.
Overrides: analysis.featureresponses.MeasureResponseCommand._feature_list
(inherited documentation)

Class Variable Details [hide private]

static_parameters

List of names of parameters of this class to pass to the pattern_presenter as static parameters, i.e. values that will be fixed to a single value during measurement.
Value:
param.List(default= ["size", "x", "y"])

contrasts

Value:
param.List(class_= int, default= [10, 20, 30, 40, 50, 60, 70, 80, 90, 100])

relative_orientations

Value:
param.List(class_= float, default= [0.0, pi/ 6, pi/ 4, pi/ 2])

units

Units for labeling the curve_parameters in figure legends. The default is %, for use with contrast, but could be any units (or the empty string).
Value:
param.String(default= " rad")

__params

dict() -> new empty dictionary.
dict(mapping) -> new dictionary initialized from a mapping object's
    (key, value) pairs.
dict(seq) -> new dictionary initialized as if via:
    d = {}
    for k, v in seq:
        d[k] = v
dict(**kwargs) -> new dictionary initialized with the name=value pairs
    in the keyword argument list.  For example:  dict(one=1, two=2)

Value:
{'apply_output_fns': <param.Boolean object at 0xb20d06c>,
 'contrasts': <param.List object at 0xb32e4ec>,
 'coords': <param.List object at 0xb20dd6c>,
 'curve_parameters': <param.parameterized.Parameter object at 0xb323144>,
 'display': <param.Boolean object at 0xb20df2c>,
 'duration': <param.Number object at 0xb30ff5c>,
 'frequencies': <param.List object at 0xb20dbec>,
 'generator_sheets': <param.List object at 0xb20d2ec>,
...