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 runenvelopewith a smaller number of realisations on each core and then combine the results usingpool.envelope. How to runenvelopein parallel may depend on your setup. A simple possibility is to useparallel::mclapplywhich I know works out of the box on linux, but much better cross platform alternatives are surely available in packages on CRAN: