update_agents: Update agents based on Bernoulli draws

Description Usage Arguments Value

View source: R/sir-simulations.R

Description

Update agents based on Bernoulli draws

Usage

1
update_agents(current_states, SIR_count, beta, gamma)

Arguments

current_states

vector of 0/1/2 of length n_agents. Gives the current state for each agent

SIR_count

total number of S, I, R currently in each state

beta

infection parameter between 0 and 1

gamma

infection parameter between 0 and 1

Value

list with


skgallagher/EpiCompare documentation built on Sept. 14, 2021, 5:45 a.m.