discrete | R Documentation |
Discretizes a Hawkes simulation
discrete(hawkes, length = NULL, binsize = NULL)
hawkes |
An object created by the function |
length |
(Either) The length for the output vector |
binsize |
(Either) The binsize for the discretization |
The vector of counts
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.