Skip to contents

Defaults are a shape/scale pair in the range reported for SARS-CoV-2; they are a placeholder, not the paper's fit.

Usage

gamma_generation_time(
  shape = 2.83,
  scale = 1.86,
  grid = NULL,
  t_max = 30,
  n = 3001L
)

Arguments

shape

Positive shape.

scale

Positive scale.

grid

Optional grid of times.

t_max

Maximum time when grid is NULL.

n

Number of grid points.

Value

A list with t and density.

Examples

gt <- gamma_generation_time()
sum(gt$density * diff(gt$t)[1])   # the density integrates to one on its grid
#> [1] 1