Dear R-Sig-Geo Members,
I have the three hypothetical point process situation (A, B and C) and my
question is: What point distribution (B or C) is more close to A?
For this problem, I make a simple example:
library(spatstat)
set.seed(2023)
A <- rpoispp(30) ## First event
B <- rpoispp(30) ##

Hi,
Great question, and clear example.
The first problem:
ACd<-pairdist(A) instead of ACd <- pairdist(AC)
BUT
pairdist() is the wrong function: that calculates the mean distance
between ALL points, A to A and C to C as well as A to C.
You need crossdist() instead.
The most flexible approach