QuasiRandom.VanDerCorputSequence Method

Gets a Van Der Corput sequence for the specified prime bases.

Definition

Namespace: Extreme.Mathematics.Random
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public static IEnumerable<double> VanDerCorputSequence(
	int length,
	int basis
)

Parameters

length  Int32
The length of the sequence.
basis  Int32
The basis of the sequence. Must be prime.

Return Value

IEnumerable<Double>
An enumerator for the Van Der Corput sequence with basis basis.

Exceptions

ArgumentOutOfRangeException

length is less than zero.

ArgumentException

basis is not a prime number.

See Also