Sobol Sequence Generator.Generate Method
Generates a Sobol quasi-random sequence.
Definition
Namespace: Extreme.Mathematics.Random
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
A sequence of points in a Sobol quasi-random sequence.
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
public IEnumerable<Vector<double>> Generate(
int length,
int skip = 0
)
Parameters
- length Int32
- skip Int32 (Optional)
- The first index of the
Return Value
IEnumerable<Vector<Double>>A sequence of points in a Sobol quasi-random sequence.
Exceptions
ArgumentOutOfRangeException | skip is less than zero.
-or- length is less than zero. |
Thread Safety
This method should not be used in parallel loops. Instead, partition the range and use a new generator on each partition.