Description Usage Arguments Value Examples
Simulates a Hawkes process via Ogata's modified thinning algorithm on [0,\mathrm{end}].
This is less efficient than function hawkes
, but can be useful for pedagogical reasons.
1 | hawkes_ogata(end, lambda, alpha, beta, lambda0 = NULL)
|
end |
Right bound on time. |
lambda |
Baseline intensity. |
alpha |
Parameter for the amplitude of the spike. |
beta |
Parameter for the speed of exponential decay. |
lambda0 |
(Optional) Initial value of the conditional intensity. |
A S3 object of class Hawkes containing a vector ($p) of simulated values, and all other objects used for the simulation.
1 2 3 4 | # Simulate an exponential Hawkes process with baseline intensity 1 and
# excitation function 1*exp(-2t)
x <- hawkes_ogata(10, 1, 1, 2)
plot(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.