Gillepsie algorithm
Mathematical foundations
- The original article by Gillepsie:
Update Rates
$b_i$ and $d_i$ represent respcetively birth and death rates of agents $i$. The total rate is given by the sum of all individual rates
\[R(t) = \left[ \sum_i b_i(t) + d_i(t) \right]\]
A particular event, birth or death, is chosen at random with a probability equal to the rate of this event divided by the total rate $R$.
ABMEv.Gillepsie
— Typestruct Gillepsie <: ABMEv.AbstractAlg
ABMEv.updateWorld!
— Methodfunction updateWorld!(w::World{A,S,T},g::G,b,d)
Updating rule for gillepsie setting. Returning dt
drawn from an exponential distribution with parameter the total rates of events.
ABMEv.update_rates!
— Methodupdate_rates!(w::World,::Gillepsie,b,d)
This standard updates takes - competition kernels of the form α(x,y) and - carrying capacity of the form K(x)