discrete: Discretizes a Hawkes simulation

View source: R/discretize.R

discreteR Documentation

Discretizes a Hawkes simulation

Description

Discretizes a Hawkes simulation

Usage

discrete(hawkes, length = NULL, binsize = NULL)

Arguments

hawkes

An object created by the function hawkes

length

(Either) The length for the output vector

binsize

(Either) The binsize for the discretization

Value

The vector of counts

Examples

x = hawkes(100, fun=1, repr=0.5, family="exp", rate=2)
y = discrete(x, length=100)
z = discrete(x, binsize=1)
all(y == z)

fcheysson/hawkesbow documentation built on Jan. 26, 2024, 9:30 p.m.