R/getBounds.R
getLower.Rd
getLower
and getUpper
return a numerical vector of lower and
upper bounds, getValues
returns a list of possible value sets for discrete
parameters.
Parameters for which such bound make no sense - due to their type - are not present in the result.
getLower(obj, with.nr = FALSE, dict = NULL) getUpper(obj, with.nr = FALSE, dict = NULL) getValues(obj, dict = NULL)
obj | ( |
---|---|
with.nr | ( |
dict | ( |
vector
| list
. Named by parameter ids.
ps = makeParamSet( makeNumericParam("u"), makeDiscreteParam("v", values = c("a", "b")), makeIntegerParam("w", lower = expression(ceiling(p / 3)), upper = 2), makeDiscreteParam("x", values = 1:2), makeNumericVectorParam("y", len = 2, lower = c(0, 10), upper = c(1, 11)), keys = "p" ) getLower(ps, dict = list(p = 7))#> u w y y #> -Inf 3 0 10getUpper(ps)#> u w y y #> Inf 2 1 11ps = makeParamSet( makeNumericParam("u"), makeDiscreteParam("w", values = list(a = list(), b = NULL)) ) getValues(ps)#> $w #> $w$a #> list() #> #> $w$b #> NULL #> #>par.vals = list( u = makeNumericParam("u"), v = makeIntegerParam("v", lower = 1, upper = 2), w = makeDiscreteParam("w", values = 1:2), x = makeNumericVectorParam("x", len = 2, lower = c(3, 1), upper = expression(n)) ) getLower(par.vals)#> u v x x #> -Inf 1 3 1#> u v x x #> Inf 2 12 12