Learn R Programming

hawkesbow (version 1.0.3)

discrete: Discretizes a Hawkes simulation

Description

Discretizes a Hawkes simulation

Usage

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

Value

The vector of counts

Arguments

hawkes

An object created by the function hawkes

length

(Either) The length for the output vector

binsize

(Either) The binsize for the discretization

Examples

Run this code
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)

Run the code above in your browser using DataLab