Skip to contents

This function computes the integral for all components for a given data point.

Usage

integrate_components_wrapper(d, mu, sigma, dist = "normal")

Arguments

d

numeric; the data point.

mu

numeric; the mean value.

sigma

numeric; the standard deviation.

dist

string; assumed distribution of the serial interval; takes "normal" or "gamma"; defaults to "normal"

Value

A vector containing the integrated values for each component.

Examples

# Example 1: Compute integrations for a specific data point
integrate_components_wrapper(1, 10, 2)
#> [1] 2.626139e-01 1.162059e-05 9.421600e-08 3.458653e-11 2.559163e-13
#> [6] 1.096782e-16 7.867958e-19