getParamNr {ParamHelpers} | R Documentation |
Return number of parameters in set.
Description
Either number of parameters or sum over parameter lengths.
Usage
getParamNr(par.set, devectorize = FALSE)
Arguments
par.set |
ParamSet |
devectorize |
( |
Value
Examples
ps = makeParamSet(
makeNumericParam("u"),
makeDiscreteVectorParam("x", len = 2, values = c("a", "b"))
)
getParamNr(ps)
getParamNr(ps, devectorize = TRUE)
[Package ParamHelpers version 1.14.1 Index]