Vector | R Documentation |
An element that defines a constant vector
biorisk::RiskElement
-> Vector
values
The values of the vector
n
Length of the vector
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$point_estimate()
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.
Vector$new(name, values, output_unit = NA)
name
A character defining the name for the element
values
A vector of values for the vector
output_unit
A character with the unit of the output
A new instance of the element
simulate()
Make simulation. Returns the vector saved in the class. If the length is different from niter, it raises an error.
Vector$simulate(niter, check_units = FALSE)
niter
Number of iterations (length of the vector).
check_units
Ignored.
simulate_level()
Simulation at some level for X-D Monte Carlo
Vector$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)
clone()
The objects of this class are cloneable with this method.
Vector$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.