Click or drag to resize

IndependentRandomStreams Class

Base class for creating streams of independent random numbers. Deriving classes must construct the streams_ array.
Inheritance Hierarchy

Namespace:  CenterSpace.NMath.Core
Assembly:  NMath (in NMath.dll) Version: 7.4
Syntax
public class IndependentRandomStreams : ICloneable, 
	IDisposable

The IndependentRandomStreams type exposes the following members.

Constructors
  NameDescription
Protected methodIndependentRandomStreams
Protected constructor. Deriving classes must construct the independent stream objects.
Protected methodIndependentRandomStreams(IndependentRandomStreams)
Constructs copy of other streams.
Top
Properties
  NameDescription
Public propertyNumberOfStreams
Gets the number of independent streams.
Public propertyStreamLength
The length of the independent streams.
Top
Methods
  NameDescription
Public methodClone
Creates a deep copy of self.
Public methodDispose
Frees the stream data structure.
Protected methodDispose(Boolean)
Frees the stream data structure.
Public methodFill(IRandomNumberDistributionDouble, DoubleMatrix)
Fills the columns of a given matrix with independent random streams following the given probablility distribution.
Public methodFill(IRandomNumberDistributionDouble, DoubleMatrix)
Fills the columns of a given matrix with independent random streams following the given probablility distributions.
Public methodFill(IRandomNumberDistributionSingle, FloatMatrix)
Fills the columns of a given matrix with independent random streams following the given probablility distribution.
Public methodFill(IRandomNumberDistributionSingle, FloatMatrix)
Fills the columns of a given matrix with independent random streams following the given probablility distributions.
Public methodFillT(IRandomNumberDistributionT, T)
Fills an array of independent random number streams with random deiviats which follow the given probability distribution.
Public methodFillT(IRandomNumberDistributionT, T)
Fills an array of independent random number streams with each stream following a given probability distribution.
Protected methodFinalize
Frees the stream data structure.
(Overrides ObjectFinalize.)
Public methodNext(IRandomNumberDistributionDouble)
Creates a matrix whose columns contain independent random number streams following the given probablility distibution.
Public methodNext(IRandomNumberDistributionDouble)
Creates a matrix whose columns contain independent random number streams where each stream follows a specified probablility distibution.
Public methodNext(IRandomNumberDistributionSingle)
Creates a matrix whose columns contain independent random number streams following the given probablility distibution.
Public methodNext(IRandomNumberDistributionSingle)
Creates a matrix whose columns contain independent random number streams where each stream follows a specified probablility distibution.
Public methodNextT(IRandomNumberDistributionT)
Returns an array of independent random number streams with the given distribution.
Public methodNextT(IRandomNumberDistributionT)
Returns an array of random number streams, each with a a different specified distribution.
Top
Fields
  NameDescription
Protected fielddisposed_
Flag indicating if the object is disposed.
Protected fieldstreams_
Independent stream objects.
Top
See Also