random_array.poisson(0) gives -1 and -2
![](https://secure.gravatar.com/avatar/6194b135cba546afa82516de1537de49.jpg?s=120&d=mm&r=g)
Hi, the random_array poisson functions returns negative values if mean=0:
My "math book" tells me that it should be always zero. This seems to be a constructed case, but I'm using this to put "quantum statistic" into a simulated image: obj = na.array( something ) imageFromDetector = ra.poisson( obj ) + gaussianNoiseArray The object array might have lots of zeros surrounding the "actual object". Thinking of a fluorescent object sending out photons it makes sense to not get any photons at all from 'empty' regions. I'm using numarray 0.8; Thanks for numarray, Sebastian Haase
![](https://secure.gravatar.com/avatar/6194b135cba546afa82516de1537de49.jpg?s=120&d=mm&r=g)
On Wednesday 19 May 2004 12:03 pm, you wrote:
I running debian (Woody) $ uname -a Linux baboon 2.4.18 #1 Tue Dec 16 14:11:01 PST 2003 i686 unknown $python -v <snip> Python 2.2.1 (#1, Feb 28 2004, 00:52:10) [GCC 2.95.4 20011002 (Debian prerelease)] on linux2 and I get this:
Thanks for checking, Sebastian
![](https://secure.gravatar.com/avatar/6194b135cba546afa82516de1537de49.jpg?s=120&d=mm&r=g)
On Wednesday 19 May 2004 12:03 pm, you wrote:
I running debian (Woody) $ uname -a Linux baboon 2.4.18 #1 Tue Dec 16 14:11:01 PST 2003 i686 unknown $python -v <snip> Python 2.2.1 (#1, Feb 28 2004, 00:52:10) [GCC 2.95.4 20011002 (Debian prerelease)] on linux2 and I get this:
Thanks for checking, Sebastian
participants (2)
-
Sebastian Haase
-
Todd Miller