ParamDbl
From paradox v0.1.0
by Michel Lang
Numerical Parameter
A Param to describe real-valued parameters.
- Keywords
- datasets
Format
R6::R6Class object inheriting from Param.
Construction
ParamDbl$new(id, lower = -Inf, upper = Inf, special_vals = list(), default = NO_DEF, tags = character())
Arguments of Param, and additionally:
lower
::numeric(1)
Lower bound, can be-Inf
.upper
::numeric(1)
Upper bound can be+Inf
.
Fields
Fields of Param, and additionally:
lower
::numeric(1)
Lower bound.upper
::numeric(1)
Upper bound.levels
::NULL
Allowed levels. AlwaysNULL
for this parameter.nlevels
::Inf
Number of categorical levels. AlwaysInf
for this parameter.is_bounded
::logical(1)
Are the bounds finite?
Methods
See Param.
See Also
Examples
# NOT RUN {
ParamDbl$new("ratio", lower = 0, upper = 1, default = 0.5)
# }
Community examples
Looks like there are no examples yet.