Description Usage Arguments Value
the alpha function for SIR process.
1 2 3 4 5 | sir_get_alpha_sir(agent_states, model_config)
sir_get_alpha_i(agent_states, model_config)
sir_get_alpha_plusone(agent_states, model_config)
|
agent_states |
the agent states at some time t |
model_config |
a list containing model parameters |
sir_get_alpha_sir(agent_states,model_config)
returns a matrix with three rows : alpha_s, alpha_i and alpha_r.
sir_get_alpha_i(agent_states, model_config)
returns alpha_i
sir_get_alpha_plusone(agent_states, model_config)
returns a vector, whose entries are alpha_i or alpha_r or 0 when previous states are 0, 1, 2 respectively.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.