Description Usage Arguments Details
GillespieStep implements a Gillespie algorithm for advancing time in the simulation.
It changes the objects in the Landscape as side-effect, and returns the total elapsed time.
A common usage for it is: while(L$clock < maxtime) print(NGillespieStep(L))
1 | GillespieStep(landscape)
|
landscape |
a landscape object |
This function uses some optimization based on how exponential random variables work.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.