Generates quasi-random Halton or Richtmeyer sequences, which are low-discrepancy number sequences.

You must manually select the polymorphic instance to use.


icon

Inputs/Outputs

  • cbool.png initialize?

    initialize? controls whether the noise sample generator seeds with a new value.

    If initialize? is TRUE, the VI updates noise samples according to the value of seed. If initialize? is FALSE, the VI produces noise samples as a continuation of the previous noise sequence. The default is TRUE.

  • ci32.png samples

    samples specifies the number of samples the VI returns in the output array. The number of samples must be greater than 0. The default is 128.

  • ci32.png seed

    seed determines the seed to generate the sequence. seed must be a prime number. If seed is negative, LabVIEW takes the absolute value. The default is 3.

  • i1ddbl.png Halton Pattern

    Halton Pattern returns a Halton sequence in the interval [0,1].

  • ii32.png error

    error returns any error or warning from the VI. You can wire error to the Error Cluster From Error Code VI to convert the error code or warning into an error cluster.

  • The quasi-random sequence is a sequence with low discrepancy that uniformly distributes in the interval [0,1].

    Use a prime number as the seed to generate a Halton sequence.

    Use an irrational number as the seed to generate a Richtmeyer sequence.

    In the VI, use the initialize? input to generate a long quasi-random noise sequence block-by-block. The following block diagram shows two ways to generate identical 300-sample Halton sequences.