C# Класс 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.
Наследование: Distribution
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
UpdateHelpers ( ) : void

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

Описание методов

IsValidMu() публичный Метод

Determines whether the specified value is valid for parameter Mu.
public IsValidMu ( double value ) : bool
value double The value to check.
Результат bool

IsValidSigma() публичный Метод

Determines whether the specified value is valid for parameter Sigma.
public IsValidSigma ( double value ) : bool
value double The value to check.
Результат bool

NextDouble() публичный Метод

Returns a normal distributed floating point random number.
public NextDouble ( ) : double
Результат double

NormalDistribution() публичный Метод

Initializes a new instance of the NormalDistribution class, using a StandardGenerator as underlying random number generator.
public NormalDistribution ( ) : System
Результат System

NormalDistribution() публичный Метод

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.
Результат System

Reset() публичный Метод

Resets the normal distribution, so that it produces the same random number sequence again.
public Reset ( ) : bool
Результат bool