The final outcome of SIR epidemics with infectivity profiles | Synapse