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

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

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

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

Determines whether the specified value is valid for parameter Alpha.

IsValidLambda ( double value ) : bool

Determines whether the specified value is valid for parameter Lambda.

NextDouble ( ) : double

Returns a weibull distributed floating point random number.

WeibullDistribution ( ) : System

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

WeibullDistribution ( Generator generator ) : System

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

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

Метод Описание
Gamma ( double x ) : double

Represents a Lanczos approximation of the Gamma function.

UpdateHelpers ( ) : void

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

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

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

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

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

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

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

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

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

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

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

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