Eaagles::Basic::NormalRand Class Reference

Inherits Eaagles::Basic::LcRand.

Inheritance diagram for Eaagles::Basic::NormalRand:

Inheritance graph
[legend]
Collaboration diagram for Eaagles::Basic::NormalRand:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 NormalRand ()
double getMean ()
double getStdDev ()

Protected Member Functions

bool setMean (LcNumber *num)
bool setStdDev (LcNumber *num)
virtual void calculateNextRand ()

Private Attributes

LcNumbermean
LcNumberstdDev
double secondRand
bool secondFlag

Detailed Description

PseudoRandom Number Generator with Normal Distribution. Std. Normal Distribution generated from Uniform Distribution using method in "Simulation Modeling & Analysis 2nd Ed." by Law & Kelton pp. 491

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


Constructor & Destructor Documentation

StdDev Eaagles::Basic::NormalRand::NormalRand (  ) 


Member Function Documentation

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.


Member Data Documentation

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.


Generated on Tue Dec 19 16:26:23 2006 for Eaagles by  doxygen 1.5.0