Package topo :: Package analysis :: Module featureresponses :: Class DistributionMatrix
[hide private]
[frames] | no frames]

Class DistributionMatrix

source code


Maintains a matrix of Distributions (each of which is a dictionary of (feature value: activity) pairs).

The matrix contains one Distribution for each unit in a rectangular matrix (given by the matrix_shape constructor argument). The contents of each Distribution can be updated for a given bin value all at once by providing a matrix of new values to update().

The results can then be accessed as a matrix of weighted averages (which can be used as a preference map) and/or a selectivity map (which measures the peakedness of each distribution).

Nested Classes [hide private]

Inherited from param.parameterized.Parameterized: __metaclass__

Instance Methods [hide private]
 
__init__(self, matrix_shape, axis_range=(0.0, 1.0), cyclic=False, keep_peak=True)
Initialize the internal data structure: a matrix of Distribution objects.
source code
 
update(self, new_values, bin)
Add a new matrix of histogram values for a given bin value.
source code
 
weighted_average(self)
Return the weighted average of each Distribution as a matrix.
source code
 
max_value_bin(self)
Return the bin with the max value of each Distribution as a matrix.
source code
 
selectivity(self)
Return the selectivity of each Distribution as a matrix.
source code

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

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

Class Methods [hide private]

Inherited from param.parameterized.Parameterized: params, print_param_defaults

Class Variables [hide private]
  name = <param.parameterized.String object at 0xb205b6c>
String identifier for this object.

Inherited from param.parameterized.Parameterized: print_level

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, matrix_shape, axis_range=(0.0, 1.0), cyclic=False, keep_peak=True)
(Constructor)

source code 
Initialize the internal data structure: a matrix of Distribution objects.
Overrides: object.__init__