Owning Class: statistics
Requires: MathScript RT Module
x = halton(p, n)
Generates the first n elements of the Halton sequence based on the prime number p. Halton sequences are quasi-random number sequences.
| Name | Description |
|---|---|
| p | Specifies a prime number. |
| n | Specifies the number of elements LabVIEW generates. |
| Name | Description |
|---|---|
| x | Returns a sequence of n real numbers in the interval [0, 1]. |
N = 10000;
plot(halton(3, N), halton(5, N), 'o')