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
Afficher le fichier Open project: FlorianRappl/YAMP

Méthodes publiques

Méthode 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

Méthode Description
UpdateHelpers ( ) : void

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

Method Details

IsValidLambda() public méthode

Determines whether the specified value is valid for parameter Lambda.
public IsValidLambda ( double value ) : bool
value double The value to check.
Résultat bool

Next() public méthode

Returns a poisson distributed random number.
public Next ( ) : int
Résultat int

NextDouble() public méthode

Returns a poisson distributed floating point random number.
public NextDouble ( ) : double
Résultat double

PoissonDistribution() public méthode

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

PoissonDistribution() public méthode

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.
Résultat System