C# 클래스 AForge.Math.Random.StandardGenerator

Standard random numbers generator.

The random number generator generates gaussian random numbers with zero mean and standard deviation of one. The generator implements polar form of the Box-Muller transformation.

The generator uses UniformOneGenerator generator as a base to generate random numbers.

Sample usage:

// create instance of random generator IRandomNumberGenerator generator = new StandardGenerator( ); // generate random number float randomNumber = generator.Next( );
상속: IRandomNumberGenerator
파일 보기 프로젝트 열기: atosorigin/Kinect 1 사용 예제들

공개 메소드들

메소드 설명
Next ( ) : double

Generate next random number.

SetSeed ( int seed ) : void

Set seed of the random numbers generator.

Resets random numbers generator initializing it with specified seed value.

StandardGenerator ( )

Initializes a new instance of the StandardGenerator class.

StandardGenerator ( int seed )

Initializes a new instance of the StandardGenerator class.

메소드 상세

Next() 공개 메소드

Generate next random number.
public Next ( ) : double
리턴 double

SetSeed() 공개 메소드

Set seed of the random numbers generator.
Resets random numbers generator initializing it with specified seed value.
public SetSeed ( int seed ) : void
seed int Seed value.
리턴 void

StandardGenerator() 공개 메소드

Initializes a new instance of the StandardGenerator class.
public StandardGenerator ( )

StandardGenerator() 공개 메소드

Initializes a new instance of the StandardGenerator class.
public StandardGenerator ( int seed )
seed int Seed value to initialize random numbers generator.