Constant | R Documentation |
An element that defines a constant
biorisk::RiskElement
-> Constant
value
The value of the constant
biorisk::RiskElement$boxplot()
biorisk::RiskElement$check_input_types()
biorisk::RiskElement$cummulative_plot()
biorisk::RiskElement$cummulative_plot_2D()
biorisk::RiskElement$density_plot()
biorisk::RiskElement$density_plot_2D()
biorisk::RiskElement$get_output()
biorisk::RiskElement$get_output_2D()
biorisk::RiskElement$get_output_type()
biorisk::RiskElement$histogram()
biorisk::RiskElement$map_input()
biorisk::RiskElement$quantiles()
biorisk::RiskElement$quantiles_2D()
biorisk::RiskElement$save_as_distribution()
biorisk::RiskElement$save_as_vector()
biorisk::RiskElement$simulate_2D()
new()
Creates a new instance of this R6 class.
Constant$new(name, value, output_unit = NA)
name
A character defining the name for the element
value
The value of the constant
output_unit
A character with the unit of the output
A new instance of the element
simulate()
Make simulation. Returns a vector of length niter with self.value.
Constant$simulate(niter, check_units = FALSE)
niter
Number of iterations (length of the vector).
check_units
Ignore.
simulate_level()
Simulation at some level for X-D Monte Carlo
Constant$simulate_level(niter0, iter1 = 1, level = 0)
niter0
Number of iterations at the lower level
iter1
Iteration at the upper level
level
Level of the calculation (ignored, it always returns a vector to facilitate the mutates)
point_estimate()
Returns the value of the constant
Constant$point_estimate()
clone()
The objects of this class are cloneable with this method.
Constant$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.