Description Usage Arguments Value See Also Examples
This function creates a function for advancing the state of an SPN model using a simple Euler-Maruyama integration method for the approximating chemical Langevin equation (CLE). The resulting function (closure) can be used in conjunction with other functions (such as simTs
) for simulating realisations of SPN models.
1 |
N |
An R list with named components representing a stochastic
Petri net. Should contain |
dt |
Time step to be used by the Euler-Maruyama integration method. Defaults to 0.01. |
An R function which can be used to advance the state of the SPN model N
by using an Euler-Maruyama method on the approximating CLE with step size dt
. The function closure has interface function(x0,t0,deltat,...)
, where x0
and t0
represent the initial state and time, and deltat
represents the amount of time by which the process should be advanced. The function closure returns a vector representing the simulated state of the system at the new time.
StepGillespie
, StepEulerSPN
,
StepSDE
, simTs
, simSample
1 2 3 4 5 6 7 8 9 10 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.