[Numpy-tickets] [NumPy] #896: Geometric, negative binomial and poisson fail for extreme arguments

NumPy numpy-tickets@scipy....
Fri Aug 29 02:54:41 CDT 2008


#896: Geometric, negative binomial and poisson fail for extreme arguments
--------------------+-------------------------------------------------------
 Reporter:  anand   |       Owner:  somebody
     Type:  defect  |      Status:  new     
 Priority:  normal  |   Milestone:  1.2.0   
Component:  Other   |     Version:  none    
 Severity:  normal  |    Keywords:          
--------------------+-------------------------------------------------------
 I'm guessing these are all related and have something to do with overflow:

 {{{
 In [1]: import numpy

 In [2]: p=1e-13

 In [3]: numpy.random.geometric(p)
 Out[3]: -2147483648

 In [4]: numpy.random.poisson((1-p)/p)
 Out[4]: -2147483648

 In [5]: numpy.random.negative_binomial(1,p)
 Out[5]: -2147483648
 }}}

-- 
Ticket URL: <http://scipy.org/scipy/numpy/ticket/896>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.


More information about the Numpy-tickets mailing list