[Numpy-discussion] unittest for np.random.poisson with lambda=0
Sebastian Haase
seb.haase@gmail....
Wed Nov 11 02:30:55 CST 2009
Hi,
maybe this is an obsolete concern,
but at some point in the past
N.random.poisson would not always return 0 for lambda being zero.
(My post at the time should be in the (numarray) list archive)
So the question is, is this still a valid concern for the current numpy?
Could there a unittest added that does something like this:
>>> a=N.random.poisson(0, 10000)
>>> N.alltrue(a==0)
True
Regards,
Sebastian Haase
More information about the NumPy-Discussion
mailing list