powered by
A Param to describe integer parameters.
R6::R6Class object inheriting from Param.
ParamInt$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.
lower
numeric(1)
-Inf
upper :: numeric(1) Upper bound can be +Inf.
upper
+Inf
Fields of Param, and additionally:
lower :: numeric(1) Lower bound.
upper :: numeric(1) Upper bound.
levels :: NULL Allowed levels. Always NULL for this parameter.
levels
NULL
nlevels :: integer(1) Number of categorical levels. Here, the number integers in the range [lower, upper], or Inf if unbounded.
nlevels
integer(1)
[lower, upper]
Inf
is_bounded :: logical(1) Are the bounds finite?
is_bounded
logical(1)
See Param.
Other Params: ParamDbl, ParamFct, ParamLgl, ParamUty, Param
ParamDbl
ParamFct
ParamLgl
ParamUty
Param
# NOT RUN { ParamInt$new("count", lower = 0, upper = 10, default = 1) # }
Run the code above in your browser using DataLab