deltametric(A, B, p = 2, c = Inf, ...)"owin"),
point patterns (objects of class "ppp")
or line segment patterns (objects of class "psp").Inf.Inf.|W| denotes the area or volume of the containing space $W$.This is defined so that it is a metric, i.e.
If $p=\infty$ and $c=\infty$ the Delta metric is equal to the Hausdorff metric.
The algorithm uses distmap to compute the distance maps
$d(x,A)$ and $d(x,B)$, then approximates the integral
numerically.
The accuracy of the computation depends on the pixel resolution
which is controlled through the extra arguments ... passed
to as.mask.
Baddeley, A.J. (1992b) An error metric for binary images. In W. Foerstner and S. Ruwiedel (eds) Robust Computer Vision. Karlsruhe: Wichmann. Pages 59--78.
distmapX <- runifpoint(20)
Y <- runifpoint(10)
deltametric(X, Y, p=1,c=0.1)Run the code above in your browser using DataLab