C# 클래스 YAMP.Numerics.GammaDistribution

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

공개 메소드들

메소드 설명
GammaDistribution ( ) : System

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

GammaDistribution ( Generator generator ) : System

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

IsValidAlpha ( double value ) : bool

Determines whether the specified value is valid for parameter Alpha.

IsValidTheta ( double value ) : bool

Determines whether the specified value is valid for parameter Theta.

NextDouble ( ) : double

Returns a gamma distributed floating point random number.

비공개 메소드들

메소드 설명
UpdateHelpers ( ) : void

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

메소드 상세

GammaDistribution() 공개 메소드

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

GammaDistribution() 공개 메소드

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

IsValidAlpha() 공개 메소드

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

IsValidTheta() 공개 메소드

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

NextDouble() 공개 메소드

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