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
| Icon | Type | Description |
|---|---|---|
| CreateNextVector() |
Constructs the next vector in the sequence.
| |
| Equals(Object) | ||
| Finalize() | ||
| 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() |
Constructors
| Icon | Type | Description |
|---|---|---|
| RandomSequenceNew(Int32, Int32, Boolean) |
Constructs a new random Sequence.
| |
| RandomSequenceNew(GeneralVector, Int32) |
Constructs a new random Sequence.
|
Properties
| Icon | Type | Description |
|---|---|---|
| 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().