simulate.sphppm | R Documentation |
Given a point process model fitted to spherical point pattern data, this function generates one or more simulated realisations of the model.
## S3 method for class 'sphppm' simulate(object, nsim = 1, ..., win, drop = TRUE)
object |
The fitted model. An object of class |
win |
The window in which to generate the simulated realisations.
An object of class |
nsim |
Number of simulations. Integer. |
... |
Ignored. |
drop |
Logical. If |
This is the method for the generic function
simulate
for the class "sphppm"
of fitted point process models on a
sphere.
Simulated realisations of the model are generated using
rpoispp.sphwin
, using predict.sphppm
to
evaluate the intensity function.
If nsim=1
and drop=TRUE
(the defaults),
a spherical point pattern (object of class "sp2"
).
Otherwise, a list of point patterns.
Adrian Baddeley.
sphppm
, rpoispp.sphwin
W <- sphwin(type="band", param=c(pi/3, 2*pi/3), ref=c(0,0)) Z <- runif.sphwin(100, W) fut <- sphppm(Z ~ x1 + x2 + x3) simulate(fut, 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.