sim_hawkes | R Documentation |
Simulates a self-exciting Hawkes process.
sim_hawkes(mu, alpha, beta, n = 100, plot = FALSE, seed = 123, method = "1")
mu |
A numeric specifying base rate of the Hawkes process. |
alpha |
A numeric specifying intensity jump after an event occurrence. |
beta |
A numeric specifying exponential intensity decay |
n |
A numeric depending on method: if |
plot |
Logical, if |
seed |
The seed. Default, |
method |
A character "1" or "2" specifying the method (see details)
to simulate Hawkes process. Default, |
Option of two methods to simulate a Hawkes process:
if method = "1"
then a univariate Hawkes process as
hawkes::simulateHawkes()
is simulated,
if method = "2"
then an accept/reject
framework is used.
A numeric
vector of simulated event times.
fit_hawkes
sim_hawkes(10.2, 3.1, 8.9)
sim_hawkes(10.2, 3.1, 8.9, method = "2")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.