An R6 class representing a model variable with Normal uncertainty.
Andrew J. Sims andrew.sims@newcastle.ac.uk
rdecision::ModVar
-> NormModVar
Inherited methods
new()
Create a model variable with normal uncertainty.
NormModVar$new(description, units, mu, sigma)
description
A character string describing the variable.
units
Units of the quantity; character string.
mu
Hyperparameter with mean of the Normal distribution for the uncertainty of the variable.
sigma
Hyperparameter equal to the standard deviation of the normal distribution for the uncertainty of the variable.
A NormModVar
object.
is_probabilistic()
Tests whether the model variable is probabilistic.
NormModVar$is_probabilistic()
TRUE
if probabilistic.
clone()
The objects of this class are cloneable with this method.
NormModVar$clone(deep = FALSE)
deep
Whether to make a deep clone.
A model variable for which the uncertainty in its point estimate can
be modelled with a Normal distribution. The hyperparameters of the
distribution are the mean (mu
) and the standard deviation (sd
)
of the uncertainty distribution. The value of mu
is the expected value
of the variable. Inherits from class ModVar
.