Skip to content
Prev 341920 / 398498 Next

spatstat package: Simulating from fitted Matern cluster process model fails

There appears to be a small bug in the code.  What is happening is that 
occasionally there are simulated points that lie inside your triangular 
window but do not lie inside any pixel of the image created from your 
"distorigin()" function.

This will be fixed in a future release of spatstat.  In the meantime I 
think you can work around the problem by using finer pixellations. For 
your example,

     spatstat.options(npixel=256)

seems to work.  For a real life example you might need to go with a 
larger value of npixel, e.g. 512.  (Powers of 2 are recommended although 
not required.)

cheers,

Rolf Turner
On 07/07/14 00:36, Philipp Hunziker wrote: