C# Class YAMP.Numerics.NormalDistribution

Provides generation of normal distributed random numbers.
The implementation of the NormalDistribution type bases upon information presented on Wikipedia - Normal distribution and the implementation in the Communication Networks Class Library.
Inheritance: Distribution
Show file Open project: FlorianRappl/YAMP Class Usage Examples

Public Methods

Method Description
IsValidMu ( double value ) : bool

Determines whether the specified value is valid for parameter Mu.

IsValidSigma ( double value ) : bool

Determines whether the specified value is valid for parameter Sigma.

NextDouble ( ) : double

Returns a normal distributed floating point random number.

NormalDistribution ( ) : System

Initializes a new instance of the NormalDistribution class, using a StandardGenerator as underlying random number generator.

NormalDistribution ( Generator generator ) : System

Initializes a new instance of the NormalDistribution class, using the specified Generator as underlying random number generator.

Reset ( ) : bool

Resets the normal distribution, so that it produces the same random number sequence again.

Private Methods

Method Description
UpdateHelpers ( ) : void

Updates the helper variables that store intermediate results for generation of normal distributed random numbers.

Method Details

IsValidMu() public method

Determines whether the specified value is valid for parameter Mu.
public IsValidMu ( double value ) : bool
value double The value to check.
return bool

IsValidSigma() public method

Determines whether the specified value is valid for parameter Sigma.
public IsValidSigma ( double value ) : bool
value double The value to check.
return bool

NextDouble() public method

Returns a normal distributed floating point random number.
public NextDouble ( ) : double
return double

NormalDistribution() public method

Initializes a new instance of the NormalDistribution class, using a StandardGenerator as underlying random number generator.
public NormalDistribution ( ) : System
return System

NormalDistribution() public method

Initializes a new instance of the NormalDistribution class, using the specified Generator as underlying random number generator.
/// is NULL ( in Visual Basic). ///
public NormalDistribution ( Generator generator ) : System
generator Generator A object.
return System

Reset() public method

Resets the normal distribution, so that it produces the same random number sequence again.
public Reset ( ) : bool
return bool