Samples the serial interval for given incubation period samples

inf_fn(inc_samp, k)

Arguments

inc_samp

a positive numeric vector: samples from the incubation period distribution

k

a numeric scalar: skew parameter for sampling the serial interval from the incubation period

Value

a numeric vector of equal length to the vector input to inc_samp

Examples

inf_fn(inc_samp = c(1, 2, 3, 4, 1), k = 2)
#> [1] 1.077607 4.161254 3.102542 8.489898 2.237750