[SciPy-user] Newbie and stats

Nils Wagner nwagner at mecha.uni-stuttgart.de
Wed Oct 19 03:10:32 CDT 2005


Samuel GARCIA wrote:
> In [38]: scipy.__version__
> Out[38]: '0.3.2'
>
>>> stats.distributions.poisson.cdf(0,0)
nan
>>> scipy.__version__
'0.3.3_303.4573'

>
> Nils Wagner a écrit :
>>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
>>
>>_______________________________________________
>>SciPy-user mailing list
>>SciPy-user at scipy.net
>>http://www.scipy.net/mailman/listinfo/scipy-user
>>  
>
>-- 
>Samuel GARCIA
>CNRS - UMR5020
>Universite Claude Bernard LYON 1
>Laboratoire des Neurosciences et Systemes Sensoriels
>50, avenue Tony Garnier
>69366 LYON Cedex 07
>04 37 28 74 64
>  
>------------------------------------------------------------------------
>
>_______________________________________________
>SciPy-user mailing list
>SciPy-user at scipy.net
>http://www.scipy.net/mailman/listinfo/scipy-user
>  


 




More information about the SciPy-user mailing list