A pseudo random number generator which returns numbers following a Poisson Distribution, modeling the probability of an event to happen a number of times in a given time interval.
Author: Manoel Campos da Silva Filho
PoissonDistr(double lambda, long seed)¶
Creates a new Poisson random number generator to check the probability of 1 event (
k) to happen at each time interval.
- lambda – the average number of events that happen at each 1 time unit. If one considers the unit as minute, this value means the average number of arrivals at each minute.
- seed – the seed to initialize the uniform random number generator
Creates a new Poisson process that considers you want to check the probability of 1 event (
k) to happen at each time.
- lambda – average number of events by interval. For instance, if it was defined 1 event to be expected at each 2.5 minutes, it means that 0.4 event is expected at each minute (1/2.5).
Gets the number of events to check the probability for them to happen in a time interval (default 1).
Gets the average number of events that are expected to happen at each 1 time unit. It is the expected number of events to happen each time, also called the event rate or rate parameter.
If the unit is minute, this value means the average number of arrivals at each minute. It’s the inverse of the
public static void
Tests the simulations of customers arrivals in a Poisson process. All the code inside this method is just to try the class. That is way it declares internal methods as Functional objects, instead of declaring such methods at the class level and just calling them.
- args –