I am working with a random number generator available in C ++ 11. At the moment I am using a uniform distribution, which should give me an equal chance of getting any number within the range A and B that I specify.
However, I am confused about creating Poisson distributions. Although I understand how to determine the Poisson probability , I do not understand how a random series of numbers can be “distributed” based on the Poisson distribution.
For example, the C ++ 11 constructor for the Poisson distribution takes one argument - λ, which is a means of distribution
std::tr1::poisson_distribution<double> poisson(7.0);
std::cout << poisson(eng) << std::endl;
In the Poisson probabilistic problem, this is equal to the expected number of successes / occurrences during a given interval. However, I do not understand what he represents in this case. What is success / occurrence in a random number scenario?
I appreciate any help or reference that I can use to help me figure this out.
source
share