Description Usage Arguments Value
Uses a modified Gillespie algorithm to simulate the numbers of susceptible and infected individuals forward in time when value of environmental force of infection changes
1 2 | inhomoSIRSGillespie(startState, popSize, startTime, intervalLength, parameters,
alphas, allbreaks)
|
startState |
Integer vector of size two containing the initial number of susceptible and infected individuals respectively |
popSize |
Population size |
startTime |
Start time of simulation |
intervalLength |
Length of simulation interval |
parameters |
Numeric vector of size seven containing the current values of the infectious contact rate, the recovery rate, the rate at which immunity is lost, and the powers |
alphas |
Numeric vector containing the values of alpha |
allbreaks |
Numeric vector containing the times at which the value of alpha changes |
Vector containing number of susceptible and infected at the end of the simulation interval
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.