[Tutor] Gamma distribution function

Jervis Whitley jervisau at gmail.com
Tue Jan 13 22:54:15 CET 2009


On Wed, Jan 14, 2009 at 8:27 AM, culpritNr1 <ig2ar-saf1 at yahoo.co.uk> wrote:

>
>
> there some kind of random.poisson()?
>
> Thank you,
>
> culpritNr1
>
> Hello try the scipy library:
>>> from scipy import stats
>>> lamb = 10
>>> stats.distributions.poisson.rvs(lamb, loc=0)
array([5])
>>> stats.distributions.poisson.rvs(lamb, loc=0)
array([14])

http://www.scipy.org/

cheers,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20090114/344b6e26/attachment.htm>


More information about the Tutor mailing list