numeric_range_parameter: Define a numeric range parameter

Description Usage Arguments See Also Examples

View source: R/param_numeric_range.R

Description

Define a numeric range parameter

Usage

1
2
3
4
5
6
7
8
numeric_range_parameter(
  id,
  default,
  lower_distribution,
  upper_distribution,
  description = NULL,
  tuneable = TRUE
)

Arguments

id

The name of the parameter.

default

The default value of the parameter.

lower_distribution

A distribution from which the lower value of the range can be sampled.

upper_distribution

A distribution from which the upper value fo the range 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

1
2
3
4
5
6
7
numeric_range_parameter(
  id = "quantiles",
  default = c(0.1, 0.99),
  lower_distribution = uniform_distribution(0, 0.25),
  upper_distribution = uniform_distribution(0.9, 1),
  description = "The lower and upper quantile thresholds."
)

dynparam documentation built on Jan. 5, 2021, 1:06 a.m.