Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

halton (MathScript Function) (Windows, Not in Base Package)

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Member of the statistics class.

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].

Examples

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

Related Topics

plot
richtmeyer


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit