The test statistic is either the cross K-function K12 or the expectation of the
cross nearest-neighbor distance ED12, see the paper Mrkvička et al. (2021). It is recommended to use the K12 statistic
for regular and Poisson processes, while it is recommended to use ED12 for cluster processes due to the potential
liberality of K12 in this case.
The two observed point patterns to be tested should be supplied using the
arguments X and Y. The shift vectors are generated from the
uniform distribution on the disk with radius given by the argument radius
and centered in the origin.
The test statistic is determined by the argument statistic. For "K12", the test statistic
is functional, the stationary cross K-function. The range of arguments is from 0 to rmax.K (there
is a sensible default). The outcome of the test is determined by the global envelope test in this case.
Alternatively, the statistic can be set to "ED12", meaning that the test statistic is scalar,
the expectation of the cross nearest-neighbor distance. The outcome of the test is determined by the
classical univariate Monte Carlo test in this case.
The argument verbose determines if auxiliary information and plots should be provided.