C# Class YAMP.Numerics.ContinuousUniformDistribution

Provides generation of continuous uniformly distributed random numbers.
The implementation of the ContinuousUniformDistribution type bases upon information presented on Wikipedia - Uniform distribution (continuous).
Inheritance: Distribution
ファイルを表示 Open project: FlorianRappl/YAMP Class Usage Examples

Public Methods

Method Description
ContinuousUniformDistribution ( ) : System

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

ContinuousUniformDistribution ( Generator generator ) : System

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

IsValidAlpha ( double value ) : bool

Determines whether the specified value is valid for parameter Alpha.

IsValidBeta ( double value ) : bool

Determines whether the specified value is valid for parameter Beta.

NextDouble ( ) : double

Returns a uniformly distributed floating point random number.

Private Methods

Method Description
UpdateHelpers ( ) : void

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

Method Details

ContinuousUniformDistribution() public method

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

ContinuousUniformDistribution() public method

Initializes a new instance of the ContinuousUniformDistribution class, using the specified Generator as underlying random number generator.
/// is NULL ( in Visual Basic). ///
public ContinuousUniformDistribution ( 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

IsValidBeta() public method

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

NextDouble() public method

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