Compute the moments for the AoI density function for a cohort of age a

momentAoI(a, FoIpar, tau = 0, hhat = 1, r = 1/200, n = 1)

Arguments

a

host age

FoIpar

a compound list to compute \(h_\tau(a)\)

tau

the host cohort's birthday

hhat

a local scaling parameter for the FoI

r

the clearance rate for a simple infection

n

the moment desired

Value

a numeric vector of length(a)