GillespieStep: Gillespie algorithm

Description Usage Arguments Details

Description

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))

Usage

1
GillespieStep(landscape)

Arguments

landscape

a landscape object

Details

This function uses some optimization based on how exponential random variables work.


andrechalom/TWoLifR documentation built on May 12, 2019, 3:34 a.m.