C# Class YAMP.Numerics.GammaDistribution

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

Public Methods

Method Description
GammaDistribution ( ) : System

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

GammaDistribution ( Generator generator ) : System

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

IsValidAlpha ( double value ) : bool

Determines whether the specified value is valid for parameter Alpha.

IsValidTheta ( double value ) : bool

Determines whether the specified value is valid for parameter Theta.

NextDouble ( ) : double

Returns a gamma distributed floating point random number.

Private Methods

Method Description
UpdateHelpers ( ) : void

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

Method Details

GammaDistribution() public method

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

GammaDistribution() public method

Initializes a new instance of the GammaDistribution class, using the specified Generator as underlying random number generator.
/// is NULL ( in Visual Basic). ///
public GammaDistribution ( Generator generator ) : System
generator Generator A object.
return System

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

IsValidTheta() public method

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

NextDouble() public method

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