Click or drag to resize

RandomNumbersT, D Class

Class RandomNumbers is an adapter for the RandomNumberStream class to give the same behavior as a scalar-type random number generator.
Inheritance Hierarchy
SystemObject
  CenterSpace.NMath.CoreRandomNumbersT, D

Namespace:  CenterSpace.NMath.Core
Assembly:  NMath (in NMath.dll) Version: 7.3
Syntax
public class RandomNumbers<T, D> : ICloneable
where D : new(), Object, IRandomNumberDistribution<T>

Type Parameters

T

[Missing <typeparam name="T"/> documentation for "T:CenterSpace.NMath.Core.RandomNumbers`2"]

D

[Missing <typeparam name="D"/> documentation for "T:CenterSpace.NMath.Core.RandomNumbers`2"]

The RandomNumbersT, D type exposes the following members.

Constructors
  NameDescription
Public methodRandomNumbersT, D
Constructs a RandomNumbers instance with default seed, distribution, and buffer size.
Public methodRandomNumbersT, D(D)
Constructs a RandomNumbers instance from the given distribution.
Protected methodRandomNumbersT, D(RandomNumbersT, D)
Copy constructor.
Public methodRandomNumbersT, D(Int32, Int32)
Constructs a RandomNumbers instance from the given seed and buffer size.
Public methodRandomNumbersT, D(RandomNumberStreamBasicRandGenType, D)
Constructs a RandomNumbers instance from the given uniform generator type and distribution.
Public methodRandomNumbersT, D(Int32, RandomNumberStreamBasicRandGenType, D)
Constructs a RandomNumbers instance from the given seed, uniform generator type, and distribution.
Public methodRandomNumbersT, D(Int32, D, Int32)
Constructs a RandomNumbers instance from the given seed, distribution, and buffer size.
Public methodRandomNumbersT, D(RandomNumberStream, D, Int32)
Constructs a RandomNumbers instance from the given stream, distribution, and buffer size.
Public methodRandomNumbersT, D(RandomNumberStreamBasicRandGenType, D, Int32)
Constructs a RandomNumbers instance from the given uniform generator type, distribution, and buffer size.
Top
Properties
  NameDescription
Public propertyBufferSize
Gets the buffer size.
Public propertyDistribution
Gets the distribution.
Public propertyStream
Gets the stream.
Top
Methods
  NameDescription
Protected methodClearBuffer
Clears the buffer.
Public methodClone
Create a deep copy of self.
Protected methodFillBuffer
Fills the buffer.
Public methodNext
Gets the next random deviate.
Protected methodStatic memberRandomSeed
Returns a random seed.
Public methodReset(Int32)
Resets the underlying stream using the given seed.
Public methodReset(Int32, Int32)
Resets the underlying stream using the given seed and buffer size.
Top
Fields
  NameDescription
Protected fieldbuffer_
The buffer.
Protected fieldbufferPos_
The buffer position.
Public fieldStatic memberDEFAULT_BUFFER_SIZE
Default buffer size.
Protected fielddistribution_
The distribution.
Protected fieldstream_
The stream.
Top
See Also