This appendix assumes some familiarity with the matrix notation introduced
in Section 2.7. From the universal kriging equations,
ordinary kriging can be derived as the special case where
and
and
contain only ones. Ordinary least squares prediction
is a special case of uncorrelated weighted least squares prediction
and estimation (constant weights).
Using the matrix notation of Section 2.7, the observations
are represented by the model
with
.
When the trend contains an
intercept (which will be true in most cases), it is enough to know
generalised covariances, defined as
,
for arbitrary
and with
the variogram of
.
Gstat chooses
as
the sill of the variogram. When block predictions
are
required, then for user-defined base functions the values for
should be given as input to gstat (in the mask map(s) or in the
X-columns of the data() file), whereas
point-to-block and block-to-block covariances (i.e.,
and
)
are derived from the point-to-point
(generalised) covariances, using Gaussian quadrature [1] or,
when either nblockdiscr or area is specified, using simple
integration (regular or user-specified discretization, equally weighted).