12#ifndef SST_CORE_RNG_POISSON_H
13#define SST_CORE_RNG_POISSON_H
75 const double L = exp(-lambda);
106 SST_SER(
const_cast<double&
>(lambda));
This class is basically a wrapper for objects to declare the order in which their members should be s...
Definition serializer.h:45
Implements a Mersenne-based RNG for use in the SST core or components.
Definition mersenne.h:34
Creates an Poisson distribution for use within SST.
Definition poisson.h:29
PoissonDistribution()
Default constructor.
Definition poisson.h:96
double getNextDouble() override
Gets the next (random) double value in the distribution.
Definition poisson.h:73
ImplementSerializable(PoissonDistribution) protected Random * baseDistrib
Serialization macro.
Definition poisson.h:114
PoissonDistribution(const double mn)
Creates an Poisson distribution with a specific lambda.
Definition poisson.h:36
~PoissonDistribution()
Destroys the Poisson distribution.
Definition poisson.h:62
PoissonDistribution(const double mn, Random *baseDist)
Creates an Poisson distribution with a specific lambda and a base random number generator.
Definition poisson.h:50
void serialize_order(SST::Core::Serialization::serializer &ser) override
Serialization function for checkpoint.
Definition poisson.h:104
bool deleteDistrib
Controls whether the base distribution should be deleted when this class is destructed.
Definition poisson.h:129
double getLambda()
Gets the lambda with which the distribution was created.
Definition poisson.h:91
RandomDistribution()
Creates the base (abstract) class of a distribution.
Definition distrib.h:41
Implements the base class for random number generators for the SST core.
Definition rng.h:29