I am curios to know if spastat functions like envelope or MAD tests can be run on multiple processors on a machine to speed up calculations? Is there any document or tutorial to do this?
Thank you.
I am curios to know if spastat functions like envelope or MAD tests can be run on multiple processors on a machine to speed up calculations? Is there any document or tutorial to do this?
Thank you.
Unfortunately, parallelisation is not an integrated part of
spatstat
, but rather left to the user. For envelopes and MAD tests the easiest option is probably to runenvelope
with a smaller number of realisations on each core and then combine the results usingpool.envelope
. How to runenvelope
in parallel may depend on your setup. A simple possibility is to useparallel::mclapply
which I know works out of the box on linux, but much better cross platform alternatives are surely available in packages on CRAN: