Simulate a Fitted Cluster Point Process Model
Generates simulated realisations from a fitted cluster point process model.
## S3 method for class 'kppm': simulate(object, nsim = 1, seed=NULL, ...)
- Fitted cluster point process model. An object of class
- Number of simulated realisations.
- an object specifying whether and how to initialise
the random number generator. Either
NULLor an integer that will be used in a call to
set.seedbefore simulating the point p
This function is a method for the generic function
simulate for the class
"kppm" of fitted
cluster point process models.
Simulations are performed by
rMatClust depending on the cluster mechanism.
The return value is a list of point patterns.
It also carries an attribute
captures the initial state of the random number generator.
This follows the convention used in
It can be used to force a sequence of simulations to be
repeated exactly, as shown in the examples for
- A list of length
nsimcontaining simulated point patterns (objects of class
The return value also carries an attribute
"seed"that captures the initial state of the random number generator. See Details.
data(redwood) fit <- kppm(redwood, ~1, "Thomas") simulate(fit, 2)