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

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

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

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

Determines whether the specified value is valid for parameter Alpha.

IsValidMu ( double value ) : bool

Determines whether the specified value is valid for parameter Mu.

LaplaceDistribution ( ) : System

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

LaplaceDistribution ( Generator generator ) : System

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

NextDouble ( ) : double

Returns a laplace distributed floating point random number.

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

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

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

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

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

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

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

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

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

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

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