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

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

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

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

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

ExponentialDistribution ( Generator generator ) : System

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

IsValidLambda ( double value ) : bool

Determines whether the specified value is valid for parameter Lambda.

NextDouble ( ) : double

Returns a exponential distributed floating point random number.

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

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

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

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

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

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

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

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

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