pc_hawkessim-class | R Documentation |
A S4 method that takes as an input a simHawkes
object and outputs a simulated nonstationary Hawkes model. The formulation of the of the
piecewise constant ACD model is given in the simHawkes
class.
pc_hawkessim(object)
## S4 method for signature 'ANY'
pc_hawkessim(object)
object |
a simHawkes object |
Returns an object of simHawkes
class containing a simulated piecewise constant Hawkes series.
Korkas, K.K., 2022. Ensemble binary segmentation for irregularly spaced data with change-points. Journal of the Korean Statistical Society, 51(1), pp.65-86.
pw.hawk.obj <- new("simHawkes")
pw.hawk.obj@cp.loc <- c(0.5)
pw.hawk.obj@lambda_0 <- c(1,2)
pw.hawk.obj@alpha <- c(0.2,0.2)
pw.hawk.obj@beta <- c(0.7,0.7)
pw.hawk.obj@horizon <- 1000
pw.hawk.obj <- pc_hawkessim(pw.hawk.obj)
ts.plot(pw.hawk.obj@H)
ts.plot(pw.hawk.obj@cH)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.