A Param to describe untyped parameters.
Super class
paradox::Param -> ParamUty
Public fields
custom_check(
function())
Custom function to check the feasibility.repr(
character(1))
Custom field for printing the parameter table.
Active bindings
lower(
numeric(1))
Lower bound. AlwaysNAfor ParamFct, ParamLgl and ParamUty.upper(
numeric(1))
Upper bound. AlwaysNAfor ParamFct, ParamLgl and ParamUty.levels(
character()|NULL)
Set of allowed levels. AlwaysNULLfor ParamDbl, ParamInt and ParamUty. Alwaysc(TRUE, FALSE)for ParamLgl.nlevels(
integer(1)|Inf)
Number of categorical levels. AlwaysInffor ParamDbl and ParamUty. The number of integers in the range[lower, upper], orInfif unbounded for ParamInt. Always2for ParamLgl.is_bounded(
logical(1))
Are the bounds finite? AlwaysTRUEfor ParamFct and ParamLgl. AlwaysFALSEfor ParamUty.storage_type(
character(1))
Data type when values of this parameter are stored in a data table or sampled. Always"numeric"for ParamDbl. Always"character"for ParamFct. Always"integer"for ParamInt. Always"logical"for ParamLgl. Always"list"for ParamUty.
Methods
Method new()
Creates a new instance of this R6 class.
Usage
ParamUty$new(
id,
default = NO_DEF,
tags = character(),
custom_check = NULL,
repr = substitute(default)
)Arguments
id(
character(1))
Identifier of the object.default(
any)
Default value. Can be from the domain of the parameter or an element ofspecial_vals. Has value NO_DEF if no default exists.NULLcan be a valid default. The value has no effect onParamSet$valuesor the behavior ofParamSet$check(),$test()or$assert(). Thedefaultis intended to be used for documentation purposes. `tags(
character())
Arbitrary tags to group and subset parameters. Some tags serve a special purpose:"required"implies that the parameters has to be given when settingvaluesin ParamSet.
custom_check(
function())
Custom function to check the feasibility. Function which checks the input. Must return 'TRUE' if the input is valid and a string with the error message otherwise. Defaults toNULL, which means that no check is performed.repr(
character(1))
Custom representation string. Used for parameter table in help pages.