RandomLHSPar: Latin-hypercube sampling of parameters

Description Usage Arguments Value Author(s) Examples

Description

RandomLHSPar samples parameters based on random Latin-Hypercube sampling within given parameter ranges

Usage

1
RandomLHSPar(nexp, lower, upper, fixed = rep(FALSE, length(lower)))

Arguments

nexp

number of samples

lower

numeric vector of lower boundary values for each parameter

upper

numeric vector of upper borundary values for each parameter

fixed

boolean vector: should a parameter kept fixed (TRUE) or should all parameters be sampled (FALSE). If TRUE than the parameter value from the vector lower will be returned.

Value

The function returns a data.frame with sampled parameters.

Author(s)

Matthias Forkel <matthias.forkel@geo.tuwien.ac.at> [aut, cre]

Examples

1
2
3
4
lower <- c(0, 100, -50, 1000)
names(lower) <- letters[1:4]
upper <- c(10, 500, 50, 10000)
RandomLHSPar(10, lower, upper)

ModelDataComp documentation built on Nov. 22, 2020, 3 a.m.