deltametric {spatstat.geom} | R Documentation |
Delta Metric
Description
Computes the discrepancy between two sets and
according to Baddeley's delta-metric.
Usage
deltametric(A, B, p = 2, c = Inf, ...)
Arguments
A , B |
The two sets which will be compared.
Windows (objects of class |
p |
Index of the |
c |
Distance threshold.
Either a positive numeric value, or |
... |
Arguments passed to |
Details
Baddeley (1992a, 1992b) defined a distance
between two sets and
contained in a space
by
where is a distance threshold parameter,
is the exponent parameter,
and
denotes the
shortest distance from a point
to the set
.
Also
|W|
denotes the area or volume of the containing space .
This is defined so that it is a metric, i.e.
-
if and only if
-
-
It is topologically equivalent to the Hausdorff metric (Baddeley, 1992a) but has better stability properties in practical applications (Baddeley, 1992b).
If and
the Delta metric
is equal to the Hausdorff metric.
The algorithm uses distmap
to compute the distance maps
and
, 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
.
Value
A numeric value.
Author(s)
Adrian Baddeley Adrian.Baddeley@curtin.edu.au
and Rolf Turner rolfturner@posteo.net
References
Baddeley, A.J. (1992a)
Errors in binary images and an version of the Hausdorff metric.
Nieuw Archief voor Wiskunde 10, 157–183.
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.
See Also
Examples
X <- runifrect(20)
Y <- runifrect(10)
deltametric(X, Y, p=1,c=0.1)