Description Usage Arguments Value Examples
View source: R/drawHPIntensity.R
Draw the intensity of a Hawkes Process
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
hp |
object parameters for Hawkes process. |
events |
the event times happened in this state |
int_title |
title of the intensity plot |
start |
the start time of current state |
end |
the end time of current state |
history |
the past event times |
color |
specify the default plotting color. |
i |
state number, used only for drawUniMMHPIntensity |
add |
whether to add the hawkes intensity to an existing plot, used for drawUniMMHPIntensity |
fit |
a boolean indicating whether to fit a new HP to events |
plot_events |
indicate whether events will be plotted |
verbose |
whether to output informative messages as running |
no return value, intensity plot of Hawkes process
1 2 3 4 | set.seed(100)
hp_obj <- pp_hp(lambda0 = 0.5, alpha = 0.45, beta = 0.5)
events <- pp_simulate(hp_obj, start = 0, end = 20)
drawHPIntensity(hp_obj, events)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.