Stoyan's \(k_{mm}(r) = E(m_i m_j | d_{ij} = r) / E(m)^2\), estimated as
spatstat.explore::markcorr with method = "density": Gaussian
kernel smoothing (stats::density, bw.nrd0 bandwidth of the
pair distances) of the pair contributions \(m_i m_j e_{ij}\) over the
weights \(e_{ij}\), with Ripley's isotropic (capped at 100) or the
translation edge weights. Where the smoothed pair density is below 1e-6 of
its maximum the ratio is undefined and returned as NaN.
Usage
MarkCorrelation(
points,
marks,
window,
r = NULL,
rmax = NULL,
correction = "iso",
normalise = TRUE
)