Learn R Programming

spatstat (version 1.15-3)

simulate.kppm: Simulate a fitted cluster point process model.

Description

Generates simulated realisations from a fitted cluster point process model.

Usage

## S3 method for class 'kppm':
simulate(object, nsim = 1, ...)

Arguments

object
Fitted cluster point process model. An object of class "kppm".
nsim
Number of simulated realisations.
...
Ignored.

Value

  • A list of length nsim containing simulated point patterns (objects of class "ppp").

Details

This function is a method for the generic function simulate for the class "kppm" of fitted cluster point process models. Simulations are performed by rThomas or rMatClust depending on the cluster mechanism.

See Also

kppm, plot.ppm, plot.minconfit

Examples

Run this code
data(redwood)
  fit <- kppm(redwood, ~1, "Thomas")
  simulate(fit, 2)

Run the code above in your browser using DataLab