Distribution

Laurent Claessens moky.math at gmail.com
Tue Mar 20 13:00:25 EDT 2012


Il 20/03/2012 12:21, Ben Finney ha scritto:
> "prince.pangeni"<prince.ram85 at gmail.com>  writes:
>
>>     I am doing a simulation project using Python. In my project, I want
>>  to use some short of distribution to generate requests to a server.

I guess scipy is also available in plain python (didn't check), but the 
following works with Sage :

----------------------------------------------------------------------
| Sage Version 4.8, Release Date: 2012-01-20                         |
| Type notebook() for the GUI, and license() for information.        |
----------------------------------------------------------------------
sage: from scipy import stats
sage: X=stats.poisson.rvs
sage: X(4)
5
sage: X(4)
2
sage: X(4)
3


Hope it helps
Laurent



More information about the Python-list mailing list