generate_design_lhs

0th

Percentile

Generate a Space-Filling LHS Design

Generate a space-filling design using Latin hypercube sampling.

Usage
generate_design_lhs(param_set, n, lhs_fun = NULL)
Arguments
param_set

(ParamSet).

n

(integer(1)) Number of points to sample.

lhs_fun

(function(n, k)) Function to use to generate a LHS sample, with n samples and k values per param. LHS functions are implemented in package lhs, default is to use lhs::maximinLHS().

Value

Design.

See Also

Other generate_design: generate_design_grid(), generate_design_random()

Aliases
  • generate_design_lhs
Examples
# NOT RUN {
ps = ParamSet$new(list(
  ParamDbl$new("ratio", lower = 0, upper = 1),
  ParamFct$new("letters", levels = letters[1:3])
))

if (requireNamespace("lhs", quietly = TRUE)) {
  generate_design_lhs(ps, 10)
}
# }
Documentation reproduced from package paradox, version 0.5.0, License: LGPL-3

Community examples

Looks like there are no examples yet.