metric.hausdorff {fda.usc} | R Documentation |
Compute the Hausdorff distances between two curves.
Description
Hausdorff distance is the greatest of all the distances from a point in one curve to the closest point in the other curve (been closest the euclidean distance).
Usage
metric.hausdorff(fdata1, fdata2 = fdata1)
Arguments
fdata1 |
Curves 1 of |
fdata2 |
Curves 2 of |
Details
Let and
be two
graphs of the considered curves
and
respectively, the
Hausdorff distance
is defined as,
where is the euclidean distance, see
metric.lp.
Author(s)
Manuel Febrero-Bande, Manuel Oviedo de la Fuente manuel.oviedo@udc.es
Examples
## Not run:
data(poblenou)
nox<-poblenou$nox[1:6]
# Hausdorff vs maximum distance
out1<-metric.hausdorff(nox)
out2<-metric.lp(nox,lp=0)
out1
out2
par(mfrow=c(1,3))
plot(nox)
plot(hclust(as.dist(out1)))
plot(hclust(as.dist(out2)))
## End(Not run)
[Package fda.usc version 2.1.0 Index]