Simulator | R Documentation |
A R6 class that is the super class for all numerical simulators
A R6 class that is the super class for all numerical simulators
The main method is 'simulate'.
the Simulation class is an abstract class. It's constructor should not be explicitly called.
model
a read-only field returning the simulation code for the model.
new()
constructor
Simulator$new(model)
model
the model to simulate
simulate()
simulate the model
Simulator$simulate(t, y0, parms = NULL, vars = names(y0), ...)
t
a numeric vector of times.
y0
a numeric vector of initial conditions.
parms
a numeric vector of parameter values.
vars
a character vector specifying the variable names to be returned. A variable can be either a compartment or a substitution
...
extra arguments to be passed to the 'ode' method substitutions that depend on the compartments are calculated and returned
a data frame which rows correspond to each time in 't', and columns correspond to the variables specified in vars.
clone()
The objects of this class are cloneable with this method.
Simulator$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.