Om
1.0.0
A universal framework for multimedia simulation
|
A class that generates a Poisson probability distribution. More...
#include <omPoissonDistribution.h>
Public Member Functions | |
PoissonDistribution () | |
Create a poisson distribution with parameter lambda equal to 1. More... | |
PoissonDistribution (const Random< double > &newRandom) | |
Create a poisson distribution with parameter lambda equal to 1. More... | |
PoissonDistribution (double newLambda) | |
Create a poisson distribution with the specified parameter lambda. More... | |
PoissonDistribution (double newLambda, const Random< double > &newRandom) | |
Create a poisson distribution with the specified parameter lambda. More... | |
PoissonDistribution (double n, double p) | |
Create a poisson distribution which approximates a binomial distribution. More... | |
PoissonDistribution (double n, double p, const Random< double > &newRandom) | |
Create a poisson distribution which approximates a binomial distribution. More... | |
T | sample () |
Generate a sample from the Poisson distribution. More... | |
double | getLambda () const |
Get the lambda parameter of this Poisson distribution. More... | |
void | setLambda (double newLambda) |
Set the lambda parameter of this Poisson distribution. More... | |
Random< double > & | getRandom () |
Get the random variable used to generate samples for this distribution. More... | |
const Random< double > & | getRandom () const |
Get the random variable used to generate samples for this distribution. More... | |
void | setRandom (const Random< double > &newRandom) |
Set the random variable used to generate samples for this distribution. More... | |
A class that generates a Poisson probability distribution.
|
inline |
Create a poisson distribution with parameter lambda equal to 1.
|
inline |
Create a poisson distribution with parameter lambda equal to 1.
The created Poisson distribution will produce samples using the specified random variable.
|
inline |
Create a poisson distribution with the specified parameter lambda.
|
inline |
Create a poisson distribution with the specified parameter lambda.
The created Poisson distribution will produce samples using the specified random variable.
|
inline |
Create a poisson distribution which approximates a binomial distribution.
When the parameter n is large and p is small, the Poisson distribution created will approximate the behavior of a binomial distribution with the parameters n and p. This can approximate the number of successes in a series of n independent yes/no experiments where the probability of a success is p.
|
inline |
Create a poisson distribution which approximates a binomial distribution.
When the parameter n is large and p is small, the Poisson distribution created will approximate the behavior of a binomial distribution with the parameters n and p. This can approximate the number of successes in a series of n independent yes/no experiments where the probability of a success is p. The created Poisson distribution will produce samples using the specified random variable.
|
inline |
Generate a sample from the Poisson distribution.
|
inline |
Get the lambda parameter of this Poisson distribution.
|
inline |
Set the lambda parameter of this Poisson distribution.
|
inline |
Get the random variable used to generate samples for this distribution.
|
inline |
Get the random variable used to generate samples for this distribution.
|
inline |
Set the random variable used to generate samples for this distribution.