C# 클래스 YAMP.Numerics.NormalDistribution

Provides generation of normal distributed random numbers.
The implementation of the NormalDistribution type bases upon information presented on Wikipedia - Normal distribution and the implementation in the Communication Networks Class Library.
상속: Distribution
파일 보기 프로젝트 열기: FlorianRappl/YAMP 1 사용 예제들

공개 메소드들

메소드 설명
IsValidMu ( double value ) : bool

Determines whether the specified value is valid for parameter Mu.

IsValidSigma ( double value ) : bool

Determines whether the specified value is valid for parameter Sigma.

NextDouble ( ) : double

Returns a normal distributed floating point random number.

NormalDistribution ( ) : System

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

NormalDistribution ( Generator generator ) : System

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

Reset ( ) : bool

Resets the normal distribution, so that it produces the same random number sequence again.

비공개 메소드들

메소드 설명
UpdateHelpers ( ) : void

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

메소드 상세

IsValidMu() 공개 메소드

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

IsValidSigma() 공개 메소드

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

NextDouble() 공개 메소드

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

NormalDistribution() 공개 메소드

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

NormalDistribution() 공개 메소드

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

Reset() 공개 메소드

Resets the normal distribution, so that it produces the same random number sequence again.
public Reset ( ) : bool
리턴 bool