Creates a Gaussian (normal) distribution for which to sample.
More...
#include "sst/core/rng/gaussian.h"
|
static constexpr uint32_t | NullClsId = std::numeric_limits<uint32_t>::max() |
|
enum | cxn_flag_t { ConstructorFlag
} |
|
static void | serializable_abort (uint32_t line, const char *file, const char *func, const char *obj) |
|
Creates a Gaussian (normal) distribution for which to sample.
◆ GaussianDistribution() [1/3]
SST::RNG::GaussianDistribution::GaussianDistribution |
( |
double |
mn, |
|
|
double |
sd |
|
) |
| |
|
inline |
Creates a new distribution with a predefined random number generator with a specified mean and standard deviation.
- Parameters
-
mn | The mean of the Gaussian distribution |
sd | The standard deviation of the Gaussian distribution |
◆ GaussianDistribution() [2/3]
SST::RNG::GaussianDistribution::GaussianDistribution |
( |
double |
mn, |
|
|
double |
sd, |
|
|
SST::RNG::Random * |
baseRNG |
|
) |
| |
|
inline |
Creates a new distribution with a predefined random number generator with a specified mean and standard deviation.
- Parameters
-
mn | The mean of the Gaussian distribution |
sd | The standard deviation of the Gaussian distribution |
baseRNG | The random number generator as the base of the distribution |
◆ GaussianDistribution() [3/3]
SST::RNG::GaussianDistribution::GaussianDistribution |
( |
| ) |
|
|
inline |
Default constructor.
FOR SERIALIZATION ONLY.
◆ getMean()
double SST::RNG::GaussianDistribution::getMean |
( |
| ) |
|
|
inline |
Gets the mean of the distribution.
- Returns
- The mean of the Guassian distribution
◆ getNextDouble()
double SST::RNG::GaussianDistribution::getNextDouble |
( |
| ) |
|
|
inlineoverridevirtual |
Gets the next double value in the distribution.
- Returns
- The next double value of the distribution (in this case a Gaussian distribution)
Implements SST::RNG::RandomDistribution.
◆ getStandardDev()
double SST::RNG::GaussianDistribution::getStandardDev |
( |
| ) |
|
|
inline |
Gets the standard deviation of the distribution.
- Returns
- The standard deviation of the Gaussian distribution
◆ stddev
Serialization macro.
The mean of the Gaussian distribution The standard deviation of the Gaussian distribution
The documentation for this class was generated from the following file: