Package mvpa :: Package clfs :: Module stats :: Class NullDist
[hide private]
[frames] | no frames]

Class NullDist

source code


Base class for null-hypothesis testing.
Nested Classes [hide private]

Inherited from misc.state.ClassWithCollections: __metaclass__

Instance Methods [hide private]
 
__init__(self, tail='both', **kwargs)
Cheap initialization.
source code
 
_setTail(self, tail) source code
 
fit(self, measure, wdata, vdata=None)
Implement to fit the distribution to the data.
source code
 
cdf(self, x)
Implementations return the value of the cumulative distribution function (left or right tail dpending on the setting).
source code
 
p(self, x, **kwargs)
Returns the p-value for values of x.
source code

Inherited from misc.state.ClassWithCollections: __getattribute__, __new__, __repr__, __setattr__, __str__, reset

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

Class Variables [hide private]
  _ATTRIBUTE_COLLECTIONS = ['states']
  tail = property(fget= lambda x: x.__tail, fset= _setTail)

Inherited from misc.state.ClassWithCollections: _DEV__doc__, descr

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, tail='both', **kwargs)
(Constructor)

source code 
Cheap initialization.
Overrides: object.__init__

p(self, x, **kwargs)

source code 

Returns the p-value for values of x. Returned values are determined left, right, or from any tail depending on the constructor setting.

In case a FeaturewiseDatasetMeasure was used to estimate the distribution the method returns an array. In that case x can be a scalar value or an array of a matching shape.