C# 클래스 YAMP.Numerics.DiscreteUniformDistribution

Provides generation of discrete uniformly distributed random numbers.
The discrete uniform distribution generates only discrete numbers.
The implementation of the DiscreteUniformDistribution type bases upon information presented on Wikipedia - Uniform distribution (discrete).
상속: Distribution
파일 보기 프로젝트 열기: FlorianRappl/YAMP 1 사용 예제들

공개 메소드들

메소드 설명
DiscreteUniformDistribution ( ) : System

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

DiscreteUniformDistribution ( Generator generator ) : System

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

IsValidAlpha ( int value ) : bool

Determines whether the specified value is valid for parameter Alpha.

IsValidBeta ( int value ) : bool

Determines whether the specified value is valid for parameter Beta.

Next ( ) : int

Returns a uniformly distributed random number.

NextDouble ( ) : double

Returns a uniformly distributed floating point random number.

비공개 메소드들

메소드 설명
UpdateHelpers ( ) : void

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

메소드 상세

DiscreteUniformDistribution() 공개 메소드

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

DiscreteUniformDistribution() 공개 메소드

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

IsValidAlpha() 공개 메소드

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

IsValidBeta() 공개 메소드

Determines whether the specified value is valid for parameter Beta.
public IsValidBeta ( int value ) : bool
value int The value to check.
리턴 bool

Next() 공개 메소드

Returns a uniformly distributed random number.
public Next ( ) : int
리턴 int

NextDouble() 공개 메소드

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