Helper function for computing weights w based on the serial interval.
serial.helper(window_size, serial_mean = log(4), serial_var = log(1.380715))A vector that stores the serial interval in reverse order. This is meant to be multiplied to infections in chronological order.
The maximum value for the serial interval.
Mean of the serial interval on the log scale. See Details.
Variance of the serial interval on the log scale. See Details.
Computed based on a log normal density function, as in Nishiura et al. (2020). Parameters
serial_mean and serial_var are arguments meanlog and sdlog of
function dlnorm. Default values are taken from the same reference.