latin_hypercube_input function
latin_hypercube_input.Rdlatin_hypercube_input draws a maximin Latin Hypercube sample of
n_spectra parameter sets over the parameter ranges given in
tab, and writes them to a CSV file (lh_ts.csv) for use as
SCOPE simulation input (e.g. to generate a synthetic training/verification
dataset). If LIDFa and LIDFb are among the sampled
variables, the sampled pair is transformed so that abs(LIDFa +
LIDFb) <= 1 is respected.
Usage
latin_hypercube_input(
tab = read.table(file.path("input", "dataset for_verification", "input_borders.csv"),
header = TRUE),
n_spectra = 30,
outdir = file.path("input", "dataset for_verification")
)Arguments
- tab
data.frame. Parameter bounds table with columns
include(logical, whether the variable is sampled),lower/upper(parameter bounds), andvariable(parameter name). Defaults to readinginput/dataset for_verification/input_borders.csv.- n_spectra
integer. Number of parameter sets (LHS samples) to draw. Default 30.
- outdir
character. Output directory in which
lh_ts.csvis written (and, iftabis missing, from whichinput_borders.csvis read). Defaultinput/dataset for_verification.