halton (MathScript RT Module Function)

LabVIEW 2012 MathScript RT模块帮助

版本日期:June 2012

产品编号:373123C-0118

»查看产品信息
下载帮助
(仅限Windows)

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

文章是否对您有帮助?

没有帮助