Learn R Programming

paradox (version 1.0.1)

generate_design_grid: Generate a Grid Design

Description

Generate a grid with a specified resolution in the parameter space. The resolution for categorical parameters is ignored, these parameters always produce a grid over all their valid levels. For number params the endpoints of the params are always included in the grid.

Usage

generate_design_grid(param_set, resolution = NULL, param_resolutions = NULL)

Value

Design.

Arguments

param_set

(ParamSet).

resolution

(integer(1))
Global resolution for all parameters.

param_resolutions

(named integer())
Resolution per Domain, named by parameter ID.

See Also

Other generate_design: generate_design_lhs(), generate_design_random(), generate_design_sobol()

Examples

Run this code
pset = ps(
  ratio = p_dbl(lower = 0, upper = 1),
  letters = p_fct(levels = letters[1:3])
)
generate_design_grid(pset, 10)

Run the code above in your browser using DataLab