Learn R Programming

ppdiag (version 0.1.1)

pp_simulate: Simulate events from a temporal point process

Description

Currently available point processes are homogeneous Poisson, Hawkes with exponential kernel, MMHP and MMPP

Usage

pp_simulate(object, start = 0, end = 1, n = NULL, verbose = FALSE)

# S3 method for default pp_simulate(object, start = 0, end = 1, n = NULL, verbose = FALSE)

# S3 method for hpp pp_simulate(object, start = 0, end = 1, n = NULL, verbose = FALSE)

# S3 method for hp pp_simulate(object, start = 0, end = 1, n = NULL, verbose = FALSE)

# S3 method for mmpp pp_simulate(object, start = 0, end = 1, n = NULL, verbose = FALSE)

# S3 method for mmhp pp_simulate(object, start = 0, end = 1, n = NULL, verbose = FALSE)

Arguments

object

point process model object of type hpp, hp, mmhp, or mmpp

start

start time of events simulated. Not used for Markov modulated models

end

end time of events simulated. Not used for Markov modulated models

n

number of events simulated. Required for Markov modulated models, optional otherwise

verbose

whether to output informative messages as running

Value

a vector of event times for all models. For Markov modulated models, also returns details on the underlying latent process

Examples

Run this code
# NOT RUN {
hpp_obj <- pp_hpp(lambda = 1)
s <- pp_simulate(hpp_obj, n = 50)
# }

Run the code above in your browser using DataLab