[NumPy-Tickets] [NumPy] #896: Geometric, negative binomial and poisson fail for extreme arguments
NumPy Trac
numpy-tickets@scipy....
Wed Mar 23 18:31:35 CDT 2011
#896: Geometric, negative binomial and poisson fail for extreme arguments
--------------------------+-------------------------------------------------
Reporter: anand | Owner: rkern
Type: defect | Status: needs_decision
Priority: normal | Milestone: Unscheduled
Component: numpy.random | Version: devel
Keywords: |
--------------------------+-------------------------------------------------
Changes (by mwiebe):
* version: none => devel
* milestone: 2.0.0 => Unscheduled
Comment:
Except for poisson, it's still basically the same (but LONGLONG_MIN
instead on a 64-bit system):
{{{
In [64]: numpy.random.geometric(p)
Out[64]: -9223372036854775808
In [65]: numpy.random.poisson((1-p)/p)
---------------------------------------------------------------------------
ValueError Traceback (most recent call
last)
/home/mwiebe/<ipython console> in <module>()
/home/mwiebe/installtest/lib64/python2.7/site-
packages/numpy/random/mtrand.so in mtrand.RandomState.poisson
(numpy/random/mtrand/mtrand.c:14605)()
ValueError: lam value too large
In [66]: numpy.random.negative_binomial(1,p)
Out[66]: -9223372036854775808
}}}
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/896#comment:12>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list