abserrloss(x, y, ...)
corrskill(x, y, ...)
sqerrloss(x, y, ...)
distmaploss(x, y, threshold = 0, const = Inf, ...)
x
and y
in order to make a distance map.x
and y
are set to zero. If Inf
(default), then no cut-off is taken. The SPCT is probably not powerful for large values of con
abserrloss
or sqerrloss
(there for consistency only, and in order to work with spatMLD
). For corrskill
, these are optional arguments to sd
. For distmaploss
, these spatMLD
to carry out the spatial prediction comparison test (SPCT) as introduced in Hering and Genton (2011); see also Gilleland (2013) in particular for details about the distance map loss function.The distance map loss funciton does not zero-out well as the other loss functions do. Therefore, zero.out
should be FALSE
in the call to spatMLD
. Further, as pointed out in Gilleland (2013), the distance map loss function can easily be hedged by having a lot of correct negatives. The image warp loss function is probably better for this purpose if, e.g., there are numerous zero-valued grid points in all fields.
Hering, A. S. and Genton, M. G. (2011) Comparing spatial predictions. Technometrics 53, (4), 414--425.
spatMLD
, vgram.matrix
, vgram
# See help file for spatMLD for examples.
Run the code above in your browser using DataLab