locmeasures2d(object,
which.stats = c("baddeley", "hausdorff", "ph", "mhd", "med", "msd", "fom"),
distfun = "distmapfun", distfun.params = NULL, ...)## S3 method for class 'locmeasures2d':
summary(object, ...)
locmeasures2dPrep
for locmeasures2d
function, and a list object output from locmeasures2d
for the summary method.x
as an argument, which is the event field for which the distances ardistfun
function.deltametric
and distmap
from package spatstat. Not used by the summary method here.The Hausdorff distance between two sets A and B contained in the finite grid is given by max( max( d(x,A), x in B), max( d(x,B), x in A)), and can be re-written as H(A,B) = max( abs( d(x,A) - d(x,B))), where x is taken over all points in the grid. Several of the distances here are modifications of the Hausdorff distance. The Baddeley metric, for example, is the Lp norm of abs( w(d(x,A)) - w(d(x,B))), where again x is taken from over the entire grid, and w is any concave continuous function that is strictly increasing at zero. Here, w(t) = min( t, c), where c is some constant given by the bdconst
argument.
Calculates one or more of the following binary image measures:
locperf
.
locperf
.
locperf
.
locperf
.
locperf
.
These distances are summaries in and of themselves, so the summary method function simply displays the results in an easy to read manner.
Baddeley, A. (1992b) Errors in binary images and an Lp version of the Hausdorff metric. Nieuw Arch. Wiskunde, 10, 157--183.
Gilleland, E. (2011) Spatial forecast verification: Baddeley's delta metric applied to the ICP test cases. Wea. Forecasting, 26, 409--415, doi:10.1175/WAF-D-10-05061.1.
Peli, T. and Malah, D. (1982) A study on edge detection algorithms. Computer Graphics and Image Processing, 20, 1--21.
Schwedler, B. R. J. and Baldwin, M. E. (2011) Diagnosing the sensitivity of binary image measures to bias, location, and event frequency within a forecast verification framework. Wea. Forecasting, 26, 1032--1044, doi:10.1175/WAF-D-11-00032.1.
Venugopal, V., Basu, S. and Foufoula-Georgiou, E. (2005) A new metric for comparing precipitation patterns with an application to ensemble forecasts. J. Geophys. Res., 110, D08111, doi:10.1029/2004JD005395, 11pp.
deltametric
, distmap
, locmeasures2dPrep
x <- y <- matrix(0, 10, 12)
x[2,3] <- 1
y[4,7] <- 1
hold <- locmeasures2dPrep("x", "y", thresholds=0.1, k=1, units="grid squares")
locmeasures2d( hold)
data( geom000)
data(geom001)
hold <- locmeasures2dPrep("geom000", "geom001", thresholds=c(0.1,50.1), k=c(4,0.975),
alpha=c(0.1,0.9), units="in/100")
hold2 <- locmeasures2d( hold)
summary( hold2)
Run the code above in your browser using DataLab