C# Класс YAMP.Numerics.RayleighDistribution

Provides generation of rayleigh distributed random numbers.
The implementation of the RayleighDistribution type bases upon information presented on Wikipedia - Rayleigh Distribution.
Наследование: Distribution
Показать файл Открыть проект

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

Метод Описание
IsValidSigma ( double value ) : bool

Determines whether the specified value is valid for parameter Sigma.

NextDouble ( ) : double

Returns a rayleigh distributed floating point random number.

RayleighDistribution ( ) : System

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

RayleighDistribution ( Generator generator ) : System

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

Reset ( ) : bool

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

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

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

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

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

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 rayleigh distributed floating point random number.
public NextDouble ( ) : double
Результат double

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

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

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

Initializes a new instance of the RayleighDistribution class, using the specified Generator as underlying random number generator.
/// is NULL ( in Visual Basic). ///
public RayleighDistribution ( Generator generator ) : System
generator Generator A object.
Результат System

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

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