C# Class Accord.Math.Random.ExponentialGenerator

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

Public Methods

Method Description
ExponentialGenerator ( float rate ) : System

Initializes a new instance of the ExponentialGenerator class.

ExponentialGenerator ( float rate, int seed ) : System

Initializes a new instance of the ExponentialGenerator 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

ExponentialGenerator() public method

Initializes a new instance of the ExponentialGenerator class.
Rate value should be greater than zero.
public ExponentialGenerator ( float rate ) : System
rate float Rate value.
return System

ExponentialGenerator() public method

Initializes a new instance of the ExponentialGenerator class.
Rate value should be greater than zero.
public ExponentialGenerator ( float rate, int seed ) : System
rate float Rate value (inverse mean).
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