Normal Class Reference

Normal class which samples random numbers from a normal distribution using the Box-Muller transform. More...

List of all members.

Public Member Functions

 Normal ()
 class constructor.
double sample (double m=0.0, double s=1.0)
 given a mean m and std dev s, return a sample from a normal distribution.

Private Member Functions

double Random ()
 this method returns a random number in the range [0.0 ... 1.0].

Private Attributes

bool mValid
 has the second random number been cached?
double mX2
 this method generates pairs of random numbers, caching the second one here.


Detailed Description

Normal class which samples random numbers from a normal distribution using the Box-Muller transform.


The documentation for this class was generated from the following file:
Generated on Thu Jan 12 10:28:55 2006 by  doxygen 1.4.5