Calling rMatClust()
with parameter saveparents=TRUE
is not providing with the parent point pattern in the result. How to retrieve the parent points?
I am trying something like the following:
parent.kappa <- function(x,y){ exp(-8.944711 - 4.645625*10^(-5)*x -6.437164*10^(-4)*y)
simulated.ppp <- rMatClust(kappa=parent.kappa, scale=10, mu=5, nsim = 1, win=owin(c(0, 1000), c(0, 1000)), saveLambda=TRUE, saveparents=TRUE)
According to the manual simulated.ppp
should have an attribute named parents
(a point pattern object) that holds the parent points of the Matern clusters.