QuasiRandom.VanDerCorputSequence Method

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

Definition

Namespace: Numerics.NET.Random
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
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