Re: [Numpy-discussion] how to get an array with varying poisson distribution

2006-07-28 Thread Travis Oliphant
Sebastian Haase wrote: Hi, Essentially I'm looking for the equivalent of what was in numarray: from numarray import random_array random_array.poisson(arr) I've just updated the mtrand library to allow this. It will be in 1.0b2 So, if you have latest SVN you can do from numpy

Re: [Numpy-discussion] how to get an array with varying poisson distribution

2006-07-25 Thread James Graham
Robert Kern wrote: Sebastian Haase wrote: Hi, Essentially I'm looking for the equivalent of what was in numarray: from numarray import random_array random_array.poisson(arr) That is: if for example arr is a 256x256 array of positive integers, then this returns a new array of

Re: [Numpy-discussion] how to get an array with varying poisson distribution

2006-07-24 Thread Robert Kern
Sebastian Haase wrote: Hi, Essentially I'm looking for the equivalent of what was in numarray: from numarray import random_array random_array.poisson(arr) That is: if for example arr is a 256x256 array of positive integers, then this returns a new array of random numbers than