If we denote the estimated pair-correlation by \(\hat{g}(v)\) then the estimate of GBL is
$$\frac{1}{|B|^2}\int \gamma_B(v)\hat{g}(v)dv, $$
where \(B\) is each of the sets (often called a box) specified by boxes
,
\(\gamma_B\) is the set covariance of \(B\),
\(|B|\) is the area of \(B\),
\(p\) is the coverage probability of a stationary RACS.
This can be used to compute the GBL from model parameters by passing gblc
the
covariance and coverage probability of the model.
If the xiim
argument to gblg
is used then pair correlation is estimated from xiim
using paircorr
and the pickaH
estimator.
The set covariance of \(B\) is computed empirically using spatstat's setcov
function, which converts \(B\) into a binary pixel mask using as.mask
defaults. Computation speed can be increased by setting a small default number of pixels, npixel
, in spatstat's global options (accessed through spatstat.options
), however fewer pixels also decreases the accuracy of the GBL computation.
The default integration method for this function uses cubature::cubintegrate()
from the cubature package.
The 'harmonisesum' integration method is known to produce numerical artefacts (Section 6.2 of (Hingee et al., 2019))