Learn R Programming

paradox (version 0.11.1)

generate_design_sobol: Generate a Space-Filling Sobol Sequence Design

Description

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).

Usage

generate_design_sobol(param_set, n)

Value

Design.

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

Run this code
ps = ParamSet$new(list(
  ParamDbl$new("ratio", lower = 0, upper = 1),
  ParamFct$new("letters", levels = letters[1:3])
))

if (requireNamespace("spacefillr", quietly = TRUE)) {
  generate_design_sobol(ps, 10)
}

Run the code above in your browser using DataLab