multiDimLHS: Multidimensional Latin Hypercube Sampling (LHS) generation

Description Usage Arguments Value Author(s) See Also Examples

View source: R/krige.R

Description

The function generates or augments a multidimensional LHS in a hyperbox.

Usage

1
2
multiDimLHS(N, lb, ub, method = c("randomLHS", "maximinLHS", "augmentLHS"),
  X = NULL, type = c("list", "matrix"))

Arguments

N

number of points to randomly select or augment an existing sample set

lb

lower bounds defining the (hyper)box

ub

upper bounds defining the (hyper)box

method

type of sampling, 'randomLHS', 'maximinLHS' or 'augmentLHS'

X

optional, matrix of existing sample points, NULL (default), for augmentation only

type

either "list" or "matrix" as return type

Value

Return either a list or a matrix of sampled vectors or newly generated points if an existing sample set is augmented.

Author(s)

M. Baaske

See Also

randomLHS, maximinLHS, augmentLHS

Examples

1
2
3
4
5
6
7
data(normal)
# generate a design
X <- multiDimLHS(N=5,qsd$lower,qsd$upper,type="matrix")

# augment design X 
rbind(X,multiDimLHS(N=1,qsd$lower,qsd$upper,X=X,
				method="augmentLHS",type="matrix"))

mbaaske/qle documentation built on May 27, 2019, midnight