Functions & Formulae

Each applied formula has its own function page, with a signature, implementations, and tests.

Cohort state-transition function

f(s_t, P_t) = s_t P_t

Maps a cohort's current state distribution and transition probabilities to its state distribution in the next model cycle.