Generate a Space-Filling Sobol Sequence Design
Source:R/generate_design_sobol.R
generate_design_sobol.Rd
Generate a space-filling design using a Sobol sequence. Dependent
parameters whose constraints are unsatisfied generate NA
entries in
their respective columns.
Uses spacefillr::generate_sobol_set.
Note that non determinism is achieved by sampling the seed argument via
sample(.Machine$integer.max, size = 1L)
.
Arguments
- param_set
(
ParamSet
).- n
(
integer(1)
)
Number of points to sample.
See also
Other generate_design:
generate_design_grid()
,
generate_design_lhs()
,
generate_design_random()
Examples
pset = ps(
ratio = p_dbl(lower = 0, upper = 1),
letters = p_fct(levels = letters[1:3])
)
if (requireNamespace("spacefillr", quietly = TRUE)) {
generate_design_sobol(pset, 10)
}
#> <Design> with 10 rows:
#> ratio letters
#> <num> <char>
#> 1: 0.8537461 b
#> 2: 0.3537461 a
#> 3: 0.6037461 a
#> 4: 0.1037461 c
#> 5: 0.4787461 c
#> 6: 0.9787461 a
#> 7: 0.2287461 b
#> 8: 0.7287461 c
#> 9: 0.9162461 c
#> 10: 0.4162461 a