pp_simulate: Simulate events from a temporal point process

Description Usage Arguments Value Examples

View source: R/pp_simulate.R

Description

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

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
pp_simulate(object, start = 0, end = 1, n = NULL, verbose = FALSE)

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

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

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

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

## S3 method for class '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

1
2
hpp_obj <- pp_hpp(lambda = 1)
s <- pp_simulate(hpp_obj, n = 50)

ppdiag documentation built on Aug. 12, 2021, 5:07 p.m.