Home | Trees | Indices | Help |
|
---|
|
Proxy/Adaptor class for SciPy distributions.
All distributions from SciPy's 'stats' module can be used with this class.
>>> import numpy as N >>> from scipy import stats >>> from mvpa.clfs.stats import FixedNullDist >>> >>> dist = FixedNullDist(stats.norm(loc=2, scale=4)) >>> dist.p(2) 0.5 >>> >>> dist.cdf(N.arange(5)) array([ 0.30853754, 0.40129367, 0.5 , 0.59870633, 0.69146246]) >>> >>> dist = FixedNullDist(stats.norm(loc=2, scale=4), tail='right') >>> dist.p(N.arange(5)) array([ 0.69146246, 0.59870633, 0.5 , 0.40129367, 0.30853754])
|
|||
Inherited from |
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from |
|
|||
Inherited from Inherited from |
|
|||
Inherited from |
|
|
|
x .
|
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Mon Apr 23 23:09:22 2012 | http://epydoc.sourceforge.net |