R语言DiceDesign包 DiceDesign-package函数使用说明

返回R语言DiceDesign包函数列表


功能\作用概述:

空间填充设计(SFD)和空间填充标准(基于距离和基于均匀性)。


语法\用法:

# **********************
# Designs of experiments
# **********************

# A maximum entropy design with 20 points in [0,1]^2
p plot(p$design,xlim=c(0,1),ylim=c(0,1))

# Change the dimnames, adjust to range (-10, 10) and round to 2 digits
xDRDN(p, letter = "T", dgts = 2, range = c(-10, 10))

# ************************
# Criteria: L2-discrepancy
# ************************
dp # Coverage measure
covp
# *******************************
# Criteria: Minimal Spanning Tree
# *******************************
mstCriteria(p$design,plot2d=TRUE)

# ****************************************************************
# Radial scanning statistic: Detection of defects of Sobol designs
# ****************************************************************

# requires randtoolbox package
library(randtoolbox)

# in 2D
rss type="l", col="red")

# in 8D. All pairs of dimensions are tried to detect the worst defect
# (according to the specified goodness-of-fit statistic).
d n rss type="l", col="red")

# avoid this defect with scrambling ?
# 1. Faure-Tezuka scrambling (type "?sobol" for more details and options)
rss upper=rep(1,d), type="l", col="red")
# 2. Owen scrambling
rss upper=rep(1,d), type="l", col="red")