C# Class YAMP.Numerics.PoissonDistribution

Provides generation of poisson distributed random numbers.
The poisson distribution generates only discrete numbers.
The implementation of the PoissonDistribution type bases upon information presented on Wikipedia - Poisson distribution and the implementation in the Communication Networks Class Library.
Inheritance: Distribution
Exibir arquivo Open project: FlorianRappl/YAMP

Public Methods

Method Description
IsValidLambda ( double value ) : bool

Determines whether the specified value is valid for parameter Lambda.

Next ( ) : int

Returns a poisson distributed random number.

NextDouble ( ) : double

Returns a poisson distributed floating point random number.

PoissonDistribution ( ) : System

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

PoissonDistribution ( Generator generator ) : System

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

Private Methods

Method Description
UpdateHelpers ( ) : void

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

Method Details

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

Next() public method

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

NextDouble() public method

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

PoissonDistribution() public method

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

PoissonDistribution() public method

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