kriging {synergyfinder} | R Documentation |
This function interpolates a zero mean Gaussian random field using the simple kriging predictor.
kriging( data, data.coord, krig.coord, cov.mod = "whitmat", sill, range, smooth, smooth2 = NULL, grid = FALSE, only.weights = FALSE )
data |
A numeric vector or matrix. If data is a matrix then the simple kriging predictor is given for each realisation, i.e., each row of data. |
data.coord |
A numeric vector or matrix specifying the coordinates of the observed data. If data.coord is a matrix, each row must corresponds to one location. |
krig.coord |
A numeric vector or matrix specifying the coordinates where the kriging predictor has to be computed. If krig.coord is a matrix, each row must correspond to one location. |
cov.mod |
A character string specifying the covariance function family. Must be one of "whitmat", "powexp", "cauchy", "bessel" or "caugen" for the Whittle-Matern, the powered exponential, the Cauchy, the Bessel or the generalized Cauchy covariance families. |
sill, range, smooth, smooth2 |
Numerics specifiying the sill, range, smooth and, if any, the second smooth parameters of the covariance function. |
grid |
logical. Does krig.coord specifies a grid? |
only.weights |
Logical. Should only the kriging weights be computed? If FALSE, the kriging predictor isn't computed. |
A list with components
coord The coordinates where the kriging predictor has been computed;
krig.est The kriging predictor estimates;
grid Does coord define a grid?;
weights A matrix giving the kriging weights: each column corresponds to one prediction location.