Compares the observed \(\hat K(r)\) with envelopes from patterns simulated under complete spatial randomness in the same window. Under CSR in the plane \(K(r) = \pi r^2\), but that holds only on the infinite plane; inside a bounded window the uncorrected estimator is biased downward, so the envelopes are the right reference.
Value
Named list with statistic, p_value,
radii, k_observed, k_mean, k_lower,
k_upper, n, nsim, area, method.
Details
The p-value is one maximum deviation over the whole radius range, ranked among the simulations. Reading significance off the radius where the curve leaves a pointwise envelope would be multiple testing.
This is the second-order counterpart of
morie_csr_nn_test, which tests the same null through
first-order nearest-neighbour distances.
Mirrors morie.fn.mrkcsr on the Python side.
