haltonset
Halton Quasirandom点套件
描述
haltonset
is a quasirandom point set object that produces points from the Halton sequence. The Halton sequence uses different prime bases in each dimension to fill space in a highly uniform manner.
Creation
描述
构造p
= haltonset(d
)d
-dimensional point setp
,这是一个haltonset
具有默认属性设置的对象。输入参数d
corresponds to theDimensions
property ofp
。
sets特性的p
= haltonset(d
,名称,价值
)p
使用一个或多个名称值对参数。将每个属性名称包装在报价中。例如,haltonset(5,'leap',2)
creates a five-dimensional point set from the first point, fourth point, seventh point, tenth point, and so on.
The returned objectp
encapsulates properties of a Halton quasirandom sequence. The point set is finite, with a length determined by the跳过
和飞跃
属性和限制点集索引的大小(最大值253)。每当您访问时就会生成点集值p
using网
or parenthesis indexing. Values are not stored withinp
。
Properties
Object Functions
您也可以使用以下MATLAB®功能haltonset
目的。该软件将点集对象视为多维点的矩阵。
例子
提示
The
跳过
和飞跃
特性are useful for parallel applications. For example, if you have a Parallel Computing Toolbox™ license, you can partition a sequence of points acrossN使用该功能不同的工人labindex
(Parallel Computing Toolbox)。On eachnth worker, set the跳过
property of the point set ton- 1和the飞跃
property toN- 1。The following code shows how to partition a sequence across three workers.nworkers = 3;p = haltonset(10,'飞跃',Nworkers-1);spmd(nworkers)p.skip = labindex -1;% Compute something using points 1,4,7...%或点2,5,8 ...或点3,6,9 ...end
算法
参考
[1] Kocis,L。和W. J. Whiten。“低分配序列的计算研究。”ACM Transactions on Mathematical Software。卷。23,第2期,1997年,第266–294页。