powered by
Draw the intensity of a Hawkes Process
drawHPIntensity( hp = NULL, events, int_title = "Hawkes Intensity", start = 0, end = max(events), history = NULL, color = 1, i = 1, add = FALSE, fit = FALSE, plot_events = TRUE, verbose = FALSE )
object parameters for Hawkes process.
the event times happened in this state
title of the intensity plot
the start time of current state
the end time of current state
the past event times
specify the default plotting color.
state number, used only for drawUniMMHPIntensity
whether to add the hawkes intensity to an existing plot, used for drawUniMMHPIntensity
a boolean indicating whether to fit a new HP to events
indicate whether events will be plotted
whether to output informative messages as running
no return value, intensity plot of Hawkes process
# NOT RUN { 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) # }
Run the code above in your browser using DataLab