C# Class YAMP.Numerics.Distribution

Declares common functionality for all random number distributions.
Mostra file Open project: FlorianRappl/YAMP

Protected Properties

Property Type Description
standardGenerator Generator

Public Methods

Method Description
NextDouble ( ) : double

Returns a distributed floating point random number.

Reset ( ) : bool

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

Protected Methods

Method Description
Distribution ( ) : System

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

Distribution ( Generator generator ) : System

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

Method Details

Distribution() protected method

Initializes a new instance of the Distribution class, using a StandardGenerator as underlying random number generator.
protected Distribution ( ) : System
return System

Distribution() protected method

Initializes a new instance of the Distribution class, using the specified Generator as underlying random number generator.
/// Generator is NULL (Nothing in Visual Basic). ///
protected Distribution ( Generator generator ) : System
generator Generator A Generator object.
return System

NextDouble() public abstract method

Returns a distributed floating point random number.
public abstract NextDouble ( ) : double
return double

Reset() public method

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

Property Details

standardGenerator protected_oe static_oe property

Gets the standard genertor to use (MT19937).
protected static Generator standardGenerator
return Generator