Convert an LNA/ODE incidence path to a prevalence path.

incidence2prevalence(
  path,
  flow_matrix,
  init_state,
  forcings = NULL,
  forcing_matrix = NULL
)

Arguments

path

matrix containing the incidence path the first column of which are incidence times

flow_matrix

flow matrix

init_state

vector of initial compartment counts

forcings

list of forcing lists

forcing_matrix

matrix containing the forcings the first column of which are times of forcings

Value

matrix containing the prevalence path