Represents a pseudo-random Sequence.

Namespace: Extreme.Statistics.Random
Assembly: Extreme.Numerics (Extreme.Numerics)

Syntax

Visual Basic (Declaration)
Public MustInherit Class RandomSequence _
	Implements IEnumerator
C#
public abstract class RandomSequence : IEnumerator
C++
public ref class RandomSequence abstract : IEnumerator

Methods

IconTypeDescription
CreateNextVector()
Constructs the next vector in the sequence.
Equals(Object)
Determines whether the specified Object is equal to the current Object.
Finalize()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
GetHashCode()
Serves as a hash function for a particular type.
GetType()
Gets the Type of the current instance.
Initialize()
Initializes the sequence.
MemberwiseClone()
Creates a shallow copy of the current Object.
MoveNext()
Moves to the next point in the enumeration.
Reset()
Resets the enumeration.
ToString()
Returns a String that represents the current Object.

Constructors

IconTypeDescription
RandomSequenceNew(Int32, Int32, Boolean)
Constructs a new random Sequence.
RandomSequenceNew(GeneralVector, Int32)
Constructs a new random Sequence.

Properties

IconTypeDescription
Capacity
Gets the length of the vectors returned by this instance.
Current
Gets the current vector in the sequence.
Dimension
Gets the length of the vectors returned by this instance.
ReturnNewInstance
Gets or sets a value that indicates whether the vector containing the last Sequence is reused to hold the next Sequence.
Sequence
Gets or sets the GeneralVector instance containing the coordinates of the current vector in the sequence.

Remarks

Use the RandomSequence class as the base class for classes that implement pseudo-random sequences. Quasi-random sequences, also called low discrepancy sequences, are sequences of vectors that progressively cover a multi-dimensional space with points that are uniformly distributed. They are used in quasi-Monte Carlo simulations, in the evaluation of multi-dimensional integrals, and in global optimimization.

RandomSequence and its derived classes implement IEnumerable. This means instances can be used in for...each loops. The Current property returns a GeneralVector that contains the current point. Depending on the value of the ReturnNewInstance property, a new GeneralVector instance is created for each point, or the new elements are copied into an existing instance.

The RandomSequence class is an abstract base class and cannot be instantiated directly. Instead, use one of the derived classes:

ClassDescriptionFaureSequenceRepresents a Fauré Sequence.HaltonSequenceRepresents a Halton sequence.

Note to inheritors: When you inherit from RandomSequence, you must override CreateNextVector(). You should also override Initialize().

Inheritance Hierarchy

System.Object
  Extreme.Statistics.Random.RandomSequence