Computes the gradient of the posterior mean and variance of the kriging model in object
at the points newdata
.
gradKm_dnewdata(object, newdata, type, se.compute = TRUE,
light.return = FALSE, bias.correct = FALSE)
a km object
a vector, matrix or data frame containing the points where to perform predictions.
a character corresponding to the type of kriging family ("SK"
or "UK"
).
an optional boolean indicating whether to compute the posterior variance or not. Default is TRUE.
an optional boolean indicating whether to return additional variables. Default is FALSE.
an optional boolean to correct bias in the UK variance. Default is FALSE.
Returns a list containing
mean:
the gradient of the posterior mean at newdata
.
trend:
the gradient of the trend at newdata
.
s2:
the gradient of the posterior variance at newdata
.