Creates an Poisson distribution for use within SST. More...
#include "sst/core/rng/poisson.h"
Public Member Functions | |
SSTPoissonDistribution (const double mn) | |
Creates an Poisson distribution with a specific lambda. | |
SSTPoissonDistribution (const double mn, SSTRandom *baseDist) | |
Creates an Poisson distribution with a specific lambda and a base random number generator. | |
~SSTPoissonDistribution () | |
Destroys the Poisson distribution. | |
double | getNextDouble () |
Gets the next (random) double value in the distribution. | |
double | getLambda () |
Gets the lambda with which the distribution was created. | |
Protected Attributes | |
const double | lambda |
Sets the lambda of the Poisson distribution. | |
SSTRandom * | baseDistrib |
Sets the base random number generator for the distribution. | |
bool | deleteDistrib |
Controls whether the base distribution should be deleted when this class is destructed. |
Creates an Poisson distribution for use within SST.
This distribution is the same across platforms and compilers.
SSTPoissonDistribution::SSTPoissonDistribution | ( | const double | mn | ) | [inline] |
Creates an Poisson distribution with a specific lambda.
mn | The lambda of the Poisson distribution |
References baseDistrib, and deleteDistrib.
SSTPoissonDistribution::SSTPoissonDistribution | ( | const double | mn, | |
SSTRandom * | baseDist | |||
) | [inline] |
Creates an Poisson distribution with a specific lambda and a base random number generator.
lambda | The lambda of the Poisson distribution | |
baseDist | The base random number generator to take the distribution from. |
References baseDistrib, and deleteDistrib.
double SSTPoissonDistribution::getLambda | ( | ) | [inline] |
Gets the lambda with which the distribution was created.
References lambda.
double SSTPoissonDistribution::getNextDouble | ( | ) | [inline, virtual] |
Gets the next (random) double value in the distribution.
Implements SST::RNG::SSTRandomDistribution.
References baseDistrib, lambda, and SST::RNG::SSTRandom::nextUniform().