C# Class YAMP.Numerics.WeibullDistribution

Provides generation of weibull distributed random numbers.
The implementation of the WeibullDistribution type bases upon information presented on Wikipedia - Weibull distribution.
Inheritance: Distribution
Mostra file Open project: FlorianRappl/YAMP

Public Methods

Method Description
IsValidAlpha ( double value ) : bool

Determines whether the specified value is valid for parameter Alpha.

IsValidLambda ( double value ) : bool

Determines whether the specified value is valid for parameter Lambda.

NextDouble ( ) : double

Returns a weibull distributed floating point random number.

WeibullDistribution ( ) : System

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

WeibullDistribution ( Generator generator ) : System

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

Private Methods

Method Description
Gamma ( double x ) : double

Represents a Lanczos approximation of the Gamma function.

UpdateHelpers ( ) : void

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

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

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 weibull distributed floating point random number.
public NextDouble ( ) : double
return double

WeibullDistribution() public method

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

WeibullDistribution() public method

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