Closed SergeStinckwich closed 3 years ago
The doGillespieIteration: t method returns deltaT. This method calculates the time interval for moving to a new event.
Since kendrick relies on the compartmental approach and the current version of this method has been implemented to take into account epidemiological models.
In the implementation of this method, we consider that an event can be seen as the existence of a transition. Then the rate of passage from one compartment to another is done with a probability that the event occurs.
Therefore, we consider the total rate (rates) as the product of the probability by the number of compartments
Can we already close this issue?
In the following method, the rates for the Gillespie algorithm are computed by multiplying the number of compartments by the probability. Why we are doing that?
Check if this is working for all Kendrick models (including models that are composed of 2 or 3 concerns). Add more tests/examples to check this.
Same question for TauLeap algorithm: