ConstModVar | R Documentation |
An R6 class representing a constant in a model.
A ModVar
with no uncertainty in its value. Its distribution
is treated as a Dirac delta function \delta(x-c)
where c
is the
hyperparameter (value of the constant). The benefit over
using a regular numeric variable in a model is that it will appear in
tabulations of the model variables associated with a model and therefore be
explicitly documented as a model input. Inherits from class ModVar
.
rdecision::ModVar
-> ConstModVar
new()
Create a new constant model variable.
ConstModVar$new(description, units, const)
description
A character string description of the variable and its role in the model. This description will be used in a tabulation of the variables linked to a model.
units
A character string description of the units, e.g. "GBP", "per year".
const
The constant numerical value of the object.
A new ConstModVar
object.
is_probabilistic()
Tests whether the model variable is probabilistic.
ConstModVar$is_probabilistic()
Does the random variable follow a distribution, or is it an expression involving' random variables, some of which follow distributions?
TRUE if probabilistic
clone()
The objects of this class are cloneable with this method.
ConstModVar$clone(deep = FALSE)
deep
Whether to make a deep clone.
Andrew Sims andrew.sims@newcastle.ac.uk
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.