R/aux_functions.R
inf_fn.Rd
Samples the serial interval for given incubation period samples
inf_fn(inc_samp, k)
a positive numeric vector: samples from the incubation period distribution
numeric
a numeric scalar: skew parameter for sampling the serial interval from the incubation period
a numeric vector of equal length to the vector input to inc_samp
inc_samp
inf_fn(inc_samp = c(1, 2, 3, 4, 1), k = 2) #> [1] 1.077607 4.161254 3.102542 8.489898 2.237750