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

NumPy numpy-tickets@scipy....
Fri Aug 29 14:19:49 CDT 2008


#896: Geometric, negative binomial and poisson fail for extreme arguments
--------------------+-------------------------------------------------------
 Reporter:  anand   |        Owner:  rkern   
     Type:  defect  |       Status:  assigned
 Priority:  normal  |    Milestone:  1.2.0   
Component:  Other   |      Version:  none    
 Severity:  normal  |   Resolution:          
 Keywords:          |  
--------------------+-------------------------------------------------------
Changes (by rkern):

  * status:  new => assigned
  * owner:  somebody => rkern

Comment:

 The way I have been fixing these problems is to simply reject the result
 if it is out of bounds and resample until I do get something in bounds.
 The generators then sample a slightly modified form of the distribution
 which is truncated to the limits of the output representation. Since this
 is basically the deal you make with any computerized non-uniform RNG, I'm
 fairly comfortable with it.

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


More information about the Numpy-tickets mailing list