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.distfun
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 teh 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:
"baddeley" Baddeley delta metric (Baddeley, 1992a,b; Gilleland, 2011; Schwedler and Baldwin, 2011)
"hausdorff" Hausdorff distance (Baddeley, 1992b; Schwedler and Baldwin, 2011)
"ph" Partial Hausdorff distance (Schwedler and Baldwin, 2011). See the help file for locperf
.
"mhd" Modified Hausdorff Distance (Schwedler and Baldwin, 2011). See the help file for locperf
.
"med" Mean Error Distance (Peli and Malah, 1982; Baddeley, 1992a). See the help file for locperf
.
"msd" Mean Square Error Distance (Peli and Malah, 1982; Baddeley, 1992a). See the help file for locperf
.
"fom" Pratt's Figure of Merit (Peli and Malah, 1982; Baddeley, 1992a, Eq (1)). See the help file for 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 D. Malah, 1982: A study on edge detection algorithms. Computer Graphics and Image Processing, 20, 1--21.
Schwedler, B. R. J. and M. E. Baldwin, 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., S. Basu, and E. Foufoula-Georgiou, 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("y", "x", thresholds=0.1, k=1, units="grid squares")
locmeasures2d( hold)
data( geom000)
data(geom001)
hold <- locmeasures2dPrep("geom001", "geom000", 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