Package mvpa :: Package datasets :: Module miscfx :: Class SequenceStats
[hide private]
[frames] | no frames]

Class SequenceStats

source code


Simple helper to provide representation of sequence statistics

Matlab analog: http://cfn.upenn.edu/aguirre/code/matlablib/mseq/mtest.m

WARNING: Experimental -- API might change without warning! Current implementation is ugly!

Instance Methods [hide private]
new empty dictionary

__init__(self, seq, order=2)
Initialize SequenceStats
source code
 
__repr__(self)
Representation of SequenceStats
source code
 
__str__(self)
str(x)
source code
 
__compute(self)
Compute stats and string representation
source code
 
plot(self)
Plot correlation coefficients
source code

Inherited from dict: __cmp__, __contains__, __delitem__, __eq__, __ge__, __getattribute__, __getitem__, __gt__, __iter__, __le__, __len__, __lt__, __ne__, __new__, __setitem__, __sizeof__, clear, copy, fromkeys, get, has_key, items, iteritems, iterkeys, itervalues, keys, pop, popitem, setdefault, update, values, viewitems, viewkeys, viewvalues

Inherited from object: __delattr__, __format__, __reduce__, __reduce_ex__, __setattr__, __subclasshook__

Class Variables [hide private]

Inherited from dict: __hash__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, seq, order=2)
(Constructor)

source code 
Initialize SequenceStats
Parameters:
  • seq (list or ndarray) - Actual sequence of labels
  • order (int) - Maximal order of counter-balancing check. For perfect counterbalancing all matrices should be identical
Returns:
new empty dictionary

Overrides: object.__init__

__repr__(self)
(Representation operator)

source code 
Representation of SequenceStats
Overrides: object.__repr__

__str__(self)
(Informal representation operator)

source code 
str(x)
Overrides: object.__str__
(inherited documentation)