R/incidence2prevalence.R
incidence2prevalence.Rd
Convert an LNA/ODE incidence path to a prevalence path.
incidence2prevalence(
path,
flow_matrix,
init_state,
forcings = NULL,
forcing_matrix = NULL
)
matrix containing the incidence path the first column of which are incidence times
flow matrix
vector of initial compartment counts
list of forcing lists
matrix containing the forcings the first column of which are times of forcings
matrix containing the prevalence path