Learn R Programming

dynparam (version 1.0.2)

integer_parameter: Define a integer parameter

Description

Define a integer parameter

Usage

integer_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 {
integer_parameter(
  id = "k",
  default = 5,
  distribution = uniform_distribution(3, 10),
  description = "The number of clusters."
)

integer_parameter(
  id = "num_iter",
  default = 100,
  distribution = expuniform_distribution(10, 10000),
  description = "The number of iterations."
)
# }

Run the code above in your browser using DataLab