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
 
__repr__(self, prefixes=[])
String definition of the object of ClassWithCollections object
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. Returned values are determined left, right, or from any tail depending on the constructor setting.
source code

Inherited from misc.state.ClassWithCollections: __getattribute__, __new__, __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__

__repr__(self, prefixes=[])
(Representation operator)

source code 
String definition of the object of ClassWithCollections object
Parameters:
  • fullname - Either to include full name of the module
  • prefixes - What other prefixes to prepend to list of arguments
Overrides: object.__repr__
(inherited documentation)

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.