Modular functions for the disease simulator to transition populations between stages and within disease compartments.
disease_transitions(stages, compartments)Transition calculation function that takes as input:
segment_abundanceMatrix of (current) abundance for each stage-compartment combo (rows) and population (columns) at time step.
occupied_indicesArray of indices for populations occupied at (current) time step.
Number of life cycle stages.
Number of disease compartments.