Description Usage Arguments Details Value Methods Examples
This function provides the core functionality of the ‘simecol’ package. Several methods depending on the class of the model are available.
1 2 | sim(obj, initialize=TRUE, ...)
# sim(obj, animation=FALSE, delay=0, ...)
|
obj |
an object of class |
initialize |
re-initialize the object if the object contains a
user-defined initializing function ( |
animation |
logical value to switch animation on (for classes
|
delay |
delay (in ms and in addition to the time needed for the
simulation) between consecutive images (for |
... |
optional parameters passed to the solver function
(e.g. |
sim
re-initializes the model object (if initialize==TRUE
and calls the appropriate solver, specified in the solver
-slot.
Objects of class rwalkModel
and indbasedModel
are
simulated by the default simObj
method. If you derive own
sublasses from simObj
it may be neccessary to write an
appropriate sim
method and/or solver function.
The function returns the complete simObj
instance with the
simulation results in the out
slot.
simulates the respective model object with optional animation.
simulates the respective model object.
simulates the respective model object with optional animation.
simulates the respective model object with optional animation.
1 2 3 4 5 6 7 |
Loading required package: deSolve
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.