Inheritance diagram for Eaagles::Basic::NormalRand:


Public Member Functions | |
| NormalRand () | |
| double | getMean () |
| double | getStdDev () |
Protected Member Functions | |
| bool | setMean (LcNumber *num) |
| bool | setStdDev (LcNumber *num) |
| virtual void | calculateNextRand () |
Private Attributes | |
| LcNumber * | mean |
| LcNumber * | stdDev |
| double | secondRand |
| bool | secondFlag |
Form name: NormalRand Slots: (I: inherited) (I) Seed: the seed to start the random number generator (I) Antithetic: boolean (true is x>0) for antithetic operation (return 1-U instead of U) (I) IncreasedPrecision: boolean (true is x>0) for using increased precision (53bit double) Mean: The Mean. StdDev: The Standard Deviation.
Output: (x=?) as a double via getNextRand(); method
| StdDev Eaagles::Basic::NormalRand::NormalRand | ( | ) |
| double Eaagles::Basic::NormalRand::getMean | ( | ) |
| double Eaagles::Basic::NormalRand::getStdDev | ( | ) |
| bool Eaagles::Basic::NormalRand::setMean | ( | LcNumber * | num | ) | [protected] |
| bool Eaagles::Basic::NormalRand::setStdDev | ( | LcNumber * | num | ) | [protected] |
| void Eaagles::Basic::NormalRand::calculateNextRand | ( | ) | [protected, virtual] |
Reimplemented from Eaagles::Basic::LcRand.
LcNumber* Eaagles::Basic::NormalRand::mean [private] |
the Mean.
LcNumber* Eaagles::Basic::NormalRand::stdDev [private] |
the Standard Deviation.
double Eaagles::Basic::NormalRand::secondRand [private] |
Normal randoms are made in pairs, this will store the second and the calculation will only have to be done once every 2 calls.
bool Eaagles::Basic::NormalRand::secondFlag [private] |
Flag to use the secondRand. Return secondRand iff true.
1.5.0