![]() |
VR-Forces 4.10 Class Documentation
|
Implementation independent random number generator with a normal (Gaussian) distribution. More...
Public Member Functions | |
| DtGaussianDistributionGenerator () | |
| Default CTOR. More... | |
| DtGaussianDistributionGenerator (const DtGaussianDistributionGenerator &other) | |
| Copy CTOR. More... | |
| ~DtGaussianDistributionGenerator () | |
| DTOR. More... | |
| void | setSeed (int seed) |
| Set the seed of the random number generator. More... | |
| float | generate (float mn=0.0f, float sd=1.0f) const |
| Generate a new random number. More... | |
| double | generate (double mn=0.0f, double sd=1.0f) const |
| float | generateHalfCurve (float mn=0.0f, float sd=1.0f) const |
| Generate a new random number which lies within the half of the distribution curve that is greater than the mean. More... | |
| double | generateHalfCurve (double mn=0.0f, double sd=1.0f) const |
Private Member Functions | |
| DtGaussianDistributionGenerator & | operator= (const DtGaussianDistributionGenerator &) |
| Assignment Operator. More... | |
Private Attributes | |
| LocalPrivate * | myMutablePrivate |
Implementation independent random number generator with a normal (Gaussian) distribution.
| makVrv::DtGaussianDistributionGenerator::DtGaussianDistributionGenerator | ( | ) |
Default CTOR.
| makVrv::DtGaussianDistributionGenerator::DtGaussianDistributionGenerator | ( | const DtGaussianDistributionGenerator & | other | ) |
Copy CTOR.
| makVrv::DtGaussianDistributionGenerator::~DtGaussianDistributionGenerator | ( | ) |
DTOR.
| void makVrv::DtGaussianDistributionGenerator::setSeed | ( | int | seed | ) |
Set the seed of the random number generator.
| [in] | seed | is the seed to set the generator. |
| float makVrv::DtGaussianDistributionGenerator::generate | ( | float | mn = 0.0f, |
| float | sd = 1.0f |
||
| ) | const |
Generate a new random number.
| [in] | mn | is the mean value of the normal distribution. |
| [in] | sd | is the standard deviation of the normal distribution. |
| double makVrv::DtGaussianDistributionGenerator::generate | ( | double | mn = 0.0f, |
| double | sd = 1.0f |
||
| ) | const |
| float makVrv::DtGaussianDistributionGenerator::generateHalfCurve | ( | float | mn = 0.0f, |
| float | sd = 1.0f |
||
| ) | const |
Generate a new random number which lies within the half of the distribution curve that is greater than the mean.
| [in] | mn | is the mean value of the normal distribution. |
| [in] | sd | is the standard deviation of the normal distribution. |
| double makVrv::DtGaussianDistributionGenerator::generateHalfCurve | ( | double | mn = 0.0f, |
| double | sd = 1.0f |
||
| ) | const |
|
private |
Assignment Operator.
|
mutableprivate |