Click or drag to resize

LeapfrogStream Class

Class LeapfrogStream represents a single leapfrog stream.
Inheritance Hierarchy

Namespace:  CenterSpace.NMath.Core
Assembly:  NMath (in NMath.dll) Version: 7.4
Syntax
public class LeapfrogStream : RandomNumberStream

The LeapfrogStream type exposes the following members.

Constructors
  NameDescription
Public methodLeapfrogStream
Constructs a LeapfrogStream object based on a given original stream.
Top
Properties
  NameDescription
Public propertyRandGenType
Gets the type.
(Inherited from RandomNumberStream.)
Top
Methods
  NameDescription
Public methodClone
Creates a deep copy of this generator.
(Inherited from RandomNumberStream.)
Public methodDispose
Frees the stream data structure.
(Inherited from RandomNumberStream.)
Protected methodDispose(Boolean)
Frees the stream data structure.
(Inherited from RandomNumberStream.)
Public methodFillT(IRandomNumberDistributionT, T)
Fills the given array with next random numbers from this stream.
(Inherited from RandomNumberStream.)
Public methodFillT(IRandomNumberDistributionT, T, Int32, Int32)
Fills the given array with next random numbers from this stream.
(Inherited from RandomNumberStream.)
Protected methodFinalize
Frees the stream data structure.
(Inherited from RandomNumberStream.)
Public methodLoadStreamFromFile
Sets this generators state to that stored in the given file using the SaveStreamToFile function.
(Inherited from RandomNumberStream.)
Public methodNextT
Fills a new array with next random numbers from this stream.
(Inherited from RandomNumberStream.)
Public methodReset
Resets the the generator to the given seed.
(Inherited from RandomNumberStream.)
Public methodSaveStreamToFile
Save this generators state to a file.
(Inherited from RandomNumberStream.)
Top
Fields
  NameDescription
Protected fielddisposed_
Flag indicating if the object is disposed.
(Inherited from RandomNumberStream.)
Protected fieldstream_
The MKL stream pointer.
(Inherited from RandomNumberStream.)
Public fieldStatic memberSupportedGeneratorTypes
A list of basic random number generator types which support leapfrog streams.
Protected fieldtype_
The basic random generator type.
(Inherited from RandomNumberStream.)
Top
Remarks
Leapfrogging is a method for generating several independent streams of random numbers in which the independent sequences are created by splitting the original sequence into k disjoint subsets, where k is the number of independent streams, is such a way that the first stream would generate the random numbers x1, xk+1, x2k+1, x3k+1,..., the second stream would generate the numbers x2, xk+2, x2k+2, x3k+2,..., and, finally, the kth stream would generate xk, x2k, x3k... SkipAheadRandomStreams
See Also