22 vector gt_rev_pmf,
int smooth) {
23 int t = num_elements(infections);
24 int ot = t - seeding_time;
27 vector[ot] infectiousness = rep_vector(1e-5, ot);
31 infections, gt_rev_pmf, seeding_time, s
33 R[s] = infections[s + seeding_time] / infectiousness[s];
39 for (i in max(1, s - smooth):min(ot, s + smooth)) {
43 sR[s] = sR[s] / window;