Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #34042
| From | Paul Rubin <no.email@nospam.invalid> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: Exponential arrival distribution in Python |
| References | <f241ce20-2bca-4ced-814c-5143f0d82ca4@googlegroups.com> |
| Date | 2012-11-28 15:25 -0800 |
| Message-ID | <7xd2yxmhrs.fsf@ruckus.brouhaha.com> (permalink) |
| Organization | Nightsong/Fort GNOX |
Ricky <rakkitha263@gmail.com> writes: > I am doing a project on traffic simulation. I want to introduce > exponential arrival distribution to precede this task. Therefore I > want write a code in python for exponential arrival distribution. I've never heard of an "exponential arrival distribution" and googling fails. Do you mean an exponential distribution, that describes the expected arrival times in a Poisson process? Python's "random" module has the random.expovariate function for that: http://docs.python.org/3/library/random.html If you want an actual (discrete) Poisson distribution, see: http://en.wikipedia.org/wiki/Poisson_distribution#Generating_Poisson-distributed_random_variables
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Exponential arrival distribution in Python Ricky <rakkitha263@gmail.com> - 2012-11-28 13:34 -0800 Re: Exponential arrival distribution in Python David Hutto <dwightdhutto@gmail.com> - 2012-11-28 17:52 -0500 Re: Exponential arrival distribution in Python David Hutto <dwightdhutto@gmail.com> - 2012-11-28 17:55 -0500 Re: Exponential arrival distribution in Python Paul Rubin <no.email@nospam.invalid> - 2012-11-28 15:25 -0800 Re: Exponential arrival distribution in Python Albert Chun-Chieh Huang <alberthuang314@gmail.com> - 2012-11-29 07:29 +0800 Re: Exponential arrival distribution in Python duncan smith <buzzard@invalid.invalid> - 2012-11-29 16:24 +0000
csiph-web