C# Class Accord.Math.Random.GaussianGenerator

Inheritance: IRandomNumberGenerator
Mostra file Open project: accord-net/framework

Public Methods

Method Description
GaussianGenerator ( float mean, float stdDev ) : System

Initializes a new instance of the GaussianGenerator class.

GaussianGenerator ( float mean, float stdDev, int seed ) : System

Initializes a new instance of the GaussianGenerator class.

Next ( ) : float

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.

Method Details

GaussianGenerator() public method

Initializes a new instance of the GaussianGenerator class.
public GaussianGenerator ( float mean, float stdDev ) : System
mean float Mean value.
stdDev float Standard deviation value.
return System

GaussianGenerator() public method

Initializes a new instance of the GaussianGenerator class.
public GaussianGenerator ( float mean, float stdDev, int seed ) : System
mean float Mean value.
stdDev float Standard deviation value.
seed int Seed value to initialize random numbers generator.
return System

Next() public method

Generate next random number.
public Next ( ) : float
return float

SetSeed() public method

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.
return void