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
Afficher le fichier Open project: FlorianRappl/YAMP Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
UpdateHelpers ( ) : void

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

Method Details

IsValidMu() public méthode

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

IsValidSigma() public méthode

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

NextDouble() public méthode

Returns a normal distributed floating point random number.
public NextDouble ( ) : double
Résultat double

NormalDistribution() public méthode

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

NormalDistribution() public méthode

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.
Résultat System

Reset() public méthode

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