C# Class YAMP.Numerics.ExponentialDistribution

Provides generation of exponential distributed random numbers.
The implementation of the ExponentialDistribution type bases upon information presented on Wikipedia - Exponential distribution.
Inheritance: Distribution
ファイルを表示 Open project: FlorianRappl/YAMP

Public Methods

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

Private Methods

Method Description
UpdateHelpers ( ) : void

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

Method Details

ExponentialDistribution() public method

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

ExponentialDistribution() public method

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

IsValidLambda() public method

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

NextDouble() public method

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