update_state: Update state

Description Usage Arguments Value Author(s)

View source: R/update_patch.R

Description

Update state

Usage

1
2
update_state(state, dt, compartments = c("susceptible", "exposed",
  "infected", "recovered"))

Arguments

state

state is a collection of patches and a matrix of rates of movement between patches.

dt

time for which state should be updated. It is the user's responsibility to make sure that this number is consistent with the units on rates. For instance, if the various rates are per week, dt is assumed to be dt weeks.

compartments

in case they are different from SEIR

Value

state updated

Author(s)

Sangeeta Bhatia


sangeetabhatia03/multipatchr documentation built on Jan. 29, 2020, 5:42 p.m.