[SciPy-user] Newbie and stats
Nils Wagner
nwagner at mecha.uni-stuttgart.de
Wed Oct 19 04:01:21 EDT 2005
Samuel GARCIA wrote:
>Why
>stats.distributions.poisson.cdf(10,0) give nan
>stats.distributions.poisson.cdf(0,0) give nan
>
>an equivalent function of matlab gave me 1 for both.
>
>Samuel
>
>
>
BTW, newscipy results in
>>> stats.distributions.poisson.cdf(10,0)
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File
"/usr/local/lib/python2.4/site-packages/scipy/stats/distributions.py",
line 3265, in cdf
insert(output,cond,self._cdf(*goodargs))
File
"/usr/local/lib/python2.4/site-packages/scipy/stats/distributions.py",
line 3741, in _cdf
k = floor(x)
NameError: global name 'floor' is not defined
Nils
More information about the SciPy-User
mailing list