This is a subclass of Random that generates numbers according to a Gaussian distribution with a specified mean and standard deviation. More...
#include <Random.h>
Public Member Functions | |
Gaussian () | |
Create a new random number generator that produces values according to a Gaussian distribution with mean 0 and standard deviation 1. | |
Gaussian (Real mean, Real stddev) | |
Create a new random number generator that produces values according to a Gaussian distribution with the specified mean and standard deviation. | |
Real | getMean () const |
Get the mean of the Gaussian distribution. | |
void | setMean (Real mean) |
Set the mean of the Gaussian distribution. | |
Real | getStdDev () const |
Get the standard deviation of the Gaussian distribution. | |
void | setStdDev (Real stddev) |
Set the standard deviation of the Gaussian distribution. | |
Protected Member Functions | |
GaussianImpl & | getImpl () |
Get the internal object which implements the random number generator. | |
const GaussianImpl & | getConstImpl () const |
Get a constant reference to the internal object which implements the random number generator. |
This is a subclass of Random that generates numbers according to a Gaussian distribution with a specified mean and standard deviation.
Gaussian | ( | ) |
Create a new random number generator that produces values according to a Gaussian distribution with mean 0 and standard deviation 1.
Gaussian | ( | Real | mean, | |
Real | stddev | |||
) |
Create a new random number generator that produces values according to a Gaussian distribution with the specified mean and standard deviation.
const GaussianImpl& getConstImpl | ( | ) | const [protected] |
Get a constant reference to the internal object which implements the random number generator.
Reimplemented from Random.
GaussianImpl& getImpl | ( | ) | [protected] |
Get the internal object which implements the random number generator.
Reimplemented from Random.
Real getMean | ( | ) | const |
Get the mean of the Gaussian distribution.
Real getStdDev | ( | ) | const |
Get the standard deviation of the Gaussian distribution.
void setMean | ( | Real | mean | ) |
Set the mean of the Gaussian distribution.
void setStdDev | ( | Real | stddev | ) |
Set the standard deviation of the Gaussian distribution.