simulate.ppm {spatstat} | R Documentation |
Generates simulated realisations from a fitted Gibbs or Poisson point process model.
## S3 method for class 'ppm' simulate(object, nsim=1, ..., start = NULL, control = default.rmhcontrol(object, expand=expand), project=TRUE, expand=NULL, verbose=FALSE, progress=(nsim > 1))
object |
Fitted point process model.
An object of class |
nsim |
Number of simulated realisations. |
start |
Data determining the initial state
of the Metropolis-Hastings algorithm. See
|
control |
Data controlling the running of
the Metropolis-Hastings algorithm. See |
... |
Ignored. |
project |
Logical flag indicating what to do if the fitted model is
invalid (in the sense that the values of the fitted coefficients do not
specify a valid point process).
If |
expand |
Optional expansion factor for simulation window. Defaults to 2. |
verbose |
Logical flag indicating whether to print progress reports
from |
progress |
Logical flag indicating whether to print progress reports for the sequence of simulations. |
This function is a method for the generic function
simulate
for the class "ppm"
of fitted
point process models.
Simulations are performed by rmh.ppm
.
A list of length nsim
containing simulated point patterns
(objects of class "ppp"
).
Adrian Baddeley Adrian.Baddeley@csiro.au http://www.maths.uwa.edu.au/~adrian/ and Rolf Turner r.turner@auckland.ac.nz
fit <- ppm(japanesepines, ~1, Strauss(0.1)) simulate(fit, 2)