How do I generate a Poisson Process?

后端 未结 8 2063
被撕碎了的回忆
被撕碎了的回忆 2021-02-20 06:07

Original Question:

I want to generate a Poisson process. If the number of arrivals by time t is N(t) and I have a Poisson distribution with parameter

8条回答
  •  悲哀的现实
    2021-02-20 07:01

    Here's sample code for generating Poisson samples using C++ TR1.

    If you want a Poisson process, times between arrivals are exponentially distributed, and exponential values can be generated trivially with the inverse CDF method: -k*log(u) where u is a uniform random variable and k is the mean of the exponential.

提交回复
热议问题