Creates a Gaussian (normal) distribution for which to sample. More...
#include "sst/core/rng/gaussian.h"
Public Member Functions | |
| SSTGaussianDistribution (double mn, double sd) | |
| Creates a new distribution with a predefined random number generator with a specified mean and standard deviation. | |
| SSTGaussianDistribution (double mn, double sd, SSTRandom *baseRNG) | |
| Creates a new distribution with a predefined random number generator with a specified mean and standard deviation. | |
| ~SSTGaussianDistribution () | |
| Destroys the Gaussian distribution. | |
| double | getNextDouble () |
| Gets the next double value in the distributon. | |
| double | getMean () |
| Gets the mean of the distribution. | |
| double | getStandardDev () |
| Gets the standard deviation of the distribution. | |
Protected Attributes | |
| double | mean |
| The mean of the Gaussian distribution. | |
| double | stddev |
| The standard deviation of the Gaussian distribution. | |
| SSTRandom * | baseDistrib |
| The base random number generator for the distribution. | |
| double | unusedPair |
| Random numbers for the distribution are read in pairs, this stores the second of the pair. | |
| bool | usePair |
| Random numbers for the distribution are read in pairs, this tells the code to use the second of the pair. | |
| bool | deleteDistrib |
| Controls whether the destructor deletes the distribution (we need to ensure we do this IF we created the distribution). | |
Creates a Gaussian (normal) distribution for which to sample.
| SST::RNG::SSTGaussianDistribution::SSTGaussianDistribution | ( | double | mn, | |
| double | sd | |||
| ) | [inline] |
Creates a new distribution with a predefined random number generator with a specified mean and standard deviation.
| mn | The mean of the Gaussian distribution | |
| sd | The standard deviation of the Gaussian distribution |
References baseDistrib, deleteDistrib, mean, stddev, unusedPair, and usePair.
| SST::RNG::SSTGaussianDistribution::SSTGaussianDistribution | ( | double | mn, | |
| double | sd, | |||
| SSTRandom * | baseRNG | |||
| ) | [inline] |
Creates a new distribution with a predefined random number generator with a specified mean and standard deviation.
| 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 |
References baseDistrib, deleteDistrib, mean, stddev, unusedPair, and usePair.
| double SST::RNG::SSTGaussianDistribution::getMean | ( | ) | [inline] |
| double SST::RNG::SSTGaussianDistribution::getNextDouble | ( | ) | [inline, virtual] |
Gets the next double value in the distributon.
Implements SST::RNG::SSTRandomDistribution.
References baseDistrib, mean, SST::RNG::SSTRandom::nextUniform(), stddev, unusedPair, and usePair.
| double SST::RNG::SSTGaussianDistribution::getStandardDev | ( | ) | [inline] |
Gets the standard deviation of the distribution.
References stddev.
1.6.1