powered by
Either number of parameters or sum over parameter lengths.
getParamNr(par.set, devectorize = FALSE)
integer.
integer
ParamSet Parameter set.
(logical(1)) Sum over length of vector parameters? Default is FALSE.
logical(1)
FALSE
ps = makeParamSet( makeNumericParam("u"), makeDiscreteVectorParam("x", len = 2, values = c("a", "b")) ) getParamNr(ps) getParamNr(ps, devectorize = TRUE)
Run the code above in your browser using DataLab