Table Of Contents

halton

Version:
    Last Modified: March 15, 2017

    Generates the first n elements of the Halton sequence based on the prime number p. Halton sequences are quasi-random number sequences.

    Syntax

    x = halton(p, n)

    Inputs

    p

    Prime number.

    n

    Number of elements MathScript generates.

    Outputs

    x

    Sequence of n real numbers in the interval [0, 1].

    N = 10000;
    plot(halton(3, N), halton(5, N), 'o')

    Where This Node Can Run:

    Desktop OS: Windows

    FPGA: This product does not support FPGA devices


    Recently Viewed Topics