C# 클래스 YAMP.Numerics.ExponentialDistribution

Provides generation of exponential distributed random numbers.
The implementation of the ExponentialDistribution type bases upon information presented on Wikipedia - Exponential distribution.
상속: Distribution
파일 보기 프로젝트 열기: FlorianRappl/YAMP

공개 메소드들

메소드 설명
ExponentialDistribution ( ) : System

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

ExponentialDistribution ( Generator generator ) : System

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

IsValidLambda ( double value ) : bool

Determines whether the specified value is valid for parameter Lambda.

NextDouble ( ) : double

Returns a exponential distributed floating point random number.

비공개 메소드들

메소드 설명
UpdateHelpers ( ) : void

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

메소드 상세

ExponentialDistribution() 공개 메소드

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

ExponentialDistribution() 공개 메소드

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

IsValidLambda() 공개 메소드

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

NextDouble() 공개 메소드

Returns a exponential distributed floating point random number.
public NextDouble ( ) : double
리턴 double