12#ifndef SST_CORE_RNG_EXPON_H
13#define SST_CORE_RNG_EXPON_H
20using namespace SST::RNG;
75 return log(1 - next) / (-1 *
lambda);
Creates an exponential distribution for use within SST.
Definition: expon.h:32
double getNextDouble()
Gets the next (random) double value in the distribution.
Definition: expon.h:72
double getLambda()
Gets the lambda with which the distribution was created.
Definition: expon.h:82
ExponentialDistribution(const double mn)
Creates an exponential distribution with a specific lambda.
Definition: expon.h:39
ExponentialDistribution(const double mn, SST::RNG::Random *baseDist)
Creates an exponential distribution with a specific lambda and a base random number generator.
Definition: expon.h:52
bool deleteDistrib
Controls whether the base distribution should be deleted when this class is destructed.
Definition: expon.h:97
~ExponentialDistribution()
Destroys the exponential distribution.
Definition: expon.h:63
SST::RNG::Random * baseDistrib
Sets the base random number generator for the distribution.
Definition: expon.h:92
double lambda
Sets the lambda of the exponential distribution.
Definition: expon.h:88
Implements a Mersenne-based RNG for use in the SST core or components.
Definition: mersenne.h:35
Base class of statistical distributions in SST.
Definition: distrib.h:23
Implements the base class for random number generators for the SST core.
Definition: rng.h:28
virtual double nextUniform()=0
Generates the next random number in the range [0,1).