C# Class YAMP.Numerics.LaplaceDistribution

Provides generation of laplace distributed random numbers.
The implementation of the LaplaceDistribution type bases upon information presented on Wikipedia - Laplace distribution.
Inheritance: Distribution
Mostrar archivo Open project: FlorianRappl/YAMP

Public Methods

Method Description
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.

Method Details

IsValidAlpha() public method

Determines whether the specified value is valid for parameter Alpha.
public IsValidAlpha ( double value ) : bool
value double The value to check.
return bool

IsValidMu() public method

Determines whether the specified value is valid for parameter Mu.
public IsValidMu ( double value ) : bool
value double The value to check.
return bool

LaplaceDistribution() public method

Initializes a new instance of the LaplaceDistribution class, using a StandardGenerator as underlying random number generator.
public LaplaceDistribution ( ) : System
return System

LaplaceDistribution() public method

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.
return System

NextDouble() public method

Returns a laplace distributed floating point random number.
public NextDouble ( ) : double
return double