halton (MathScript RT Module Function)

LabVIEW 2012 MathScript RT Module Help

Edition Date: June 2012

Part Number: 373123C-01

»View Product Info
Download Help (Windows Only)

Owning Class: statistics

Requires: MathScript RT Module

Syntax

x = halton(p, n)

Description

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

Examples

Inputs

Name Description
p Specifies a prime number.
n Specifies the number of elements LabVIEW generates.

Outputs

Name Description
x Returns a sequence of n real numbers in the interval [0, 1].

Details

The following table lists the support characteristics of this function.

Supported in the LabVIEW Run-Time Engine Yes
Supported on RT targets Yes
Suitable for bounded execution times on RT Not characterized

Examples

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

Related Topics

plot
richtmeyer

WAS THIS ARTICLE HELPFUL?

Not Helpful