Description Usage Arguments Value Examples
Plot force of infection
1 2 3 4 5 6 7 8 | plot_intensity(
events,
T_max,
kernel,
parameters,
mu_fn = mu_none,
parent_indexes = NULL
)
|
events |
List of event times |
T_max |
Maximum time to plot |
kernel |
Kernel |
parameters |
Parameters of the Hawkes kernel |
mu_fn |
Function for exogenous intensity (some examples are given in R/mu.R) |
parent_indexes |
Index of parent if known |
Plot of force of infection.
1 2 3 4 5 6 | plot_intensity(events = c(0, 2, 5, 6, 7), T_max = 10, kernel = exp_kernel,
parameters = list("alpha" = 1, "delta" = 1, "delay" = 0))
plot_intensity(events = c(0, 2, 5, 6, 7), T_max = 10, kernel = ray_kernel,
parameters = list("alpha" = 1, "delta" = 1, "delay" = 0))
plot_intensity(events = c(0, 2, 5, 6, 7), T_max = 10, kernel = ray_kernel,
parameters = list("alpha" = 1, "delta" = 1, "delay" = 5))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.