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

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

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

Метод Описание
GammaDistribution ( ) : System

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

GammaDistribution ( Generator generator ) : System

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

IsValidAlpha ( double value ) : bool

Determines whether the specified value is valid for parameter Alpha.

IsValidTheta ( double value ) : bool

Determines whether the specified value is valid for parameter Theta.

NextDouble ( ) : double

Returns a gamma distributed floating point random number.

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

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

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

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

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

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

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

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

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

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

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

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

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

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