dynparam (version 1.0.2)

numeric_parameter: Define a numeric parameter

Description

Define a numeric parameter

Usage

numeric_parameter(
  id,
  default,
  distribution,
  description = NULL,
  tuneable = TRUE
)

Arguments

id

The name of the parameter.

default

The default value of the parameter.

distribution

A distribution from which the parameter can be sampled.

description

An optional (but recommended) description of the parameter.

tuneable

Whether or not a parameter is tuneable.

See Also

dynparam for an overview of all dynparam functionality.

Examples

Run this code
# NOT RUN {
numeric_parameter(
  id = "alpha",
  default = 0.5,
  distribution = uniform_distribution(0.0, 1.0),
  description = "Weighting parameter for distance function."
)

numeric_parameter(
  id = "beta",
  default = 0.001,
  distribution = expuniform_distribution(1e-4, 1e-1),
  description = "Percentage decrease in age per iteration"
)
# }

Run the code above in your browser using DataCamp Workspace