Inheritance diagram for RealRandom:

This class is the base for all of the real-valued random number generators.
Definition at line 123 of file Random.H.
Public Member Functions | |
| RealRandom (const unsigned long seed) | |
Generate samples | |
| RealRandom & | operator>> (double &random_number) |
| Output stream operator. | |
| double | operator() () |
| Function operator. | |
| operator double () | |
| Double precision cast operator. | |
| virtual double | number ()=0 |
| Generate a sample from the random variable. | |
Moments of the random variable | |
| virtual double | mean () const=0 |
| virtual double | variance () const=0 |
| virtual double | stdDev () const=0 |
| RealRandom | ( | const unsigned long | seed | ) | [inline] |
| RealRandom& operator>> | ( | double & | random_number | ) | [inline] |
Output stream operator.
This generates a random number and loads it into a double precision floating point variable.
| random_number | The variable to be assigned to. |
Definition at line 139 of file Random.H.
References number().
| double operator() | ( | ) | [inline] |
| operator double | ( | ) | [inline] |
Double precision cast operator.
This allows an instance of the class to be treated as a double precision floating point number. Every access of this number will return a new sample from the random variable.
Definition at line 152 of file Random.H.
References number().
| virtual double number | ( | ) | [pure virtual] |
Generate a sample from the random variable.
This function generates a sample from the random variable represented by the class instance.
Implemented in UniformRandomSimple, UniformRandom, NormalRandom, and ExponentialRandom.
Referenced by operator double(), operator()(), and operator>>().
| virtual double mean | ( | ) | const [pure virtual] |
Implements MTRand.
Implemented in UniformRandomSimple, UniformRandom, NormalRandom, and ExponentialRandom.
| virtual double variance | ( | ) | const [pure virtual] |
Implements MTRand.
Implemented in UniformRandomSimple, UniformRandom, NormalRandom, and ExponentialRandom.
| virtual double stdDev | ( | ) | const [pure virtual] |
Implements MTRand.
Implemented in UniformRandomSimple, UniformRandom, NormalRandom, and ExponentialRandom.
1.5.1