C# Class YAMP.Numerics.BinomialDistribution

Provides generation of binomial distributed random numbers.
The binomial distribution generates only discrete numbers.
The implementation of the BinomialDistribution type bases upon information presented on Wikipedia - Binomial distribution.
Inheritance: Distribution
Mostrar archivo Open project: FlorianRappl/YAMP

Public Methods

Method Description
BinomialDistribution ( ) : System

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

BinomialDistribution ( Generator generator ) : System

Initializes a new instance of the BinomialDistribution 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 ( int value ) : bool

Determines whether the specified value is valid for parameter Beta.

Next ( ) : int

Returns a binomial distributed random number.

NextDouble ( ) : double

Returns a binomial distributed floating point random number.

Method Details

BinomialDistribution() public method

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

BinomialDistribution() public method

Initializes a new instance of the BinomialDistribution class, using the specified Generator as underlying random number generator.
/// is NULL ( in Visual Basic). ///
public BinomialDistribution ( 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 ( int value ) : bool
value int The value to check.
return bool

Next() public method

Returns a binomial distributed random number.
public Next ( ) : int
return int

NextDouble() public method

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