Last chance! 50% off unlimited learning
Sale ends in
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).
metric.hausdorff(fdata1, fdata2 = fdata1)
Curves 1 of fdata
class. The dimension of fdata1
object is (n1
x m
), where n1
is the number of points
observed in t
coordinates with lenght m
.
Curves 2 of fdata
class. The dimension of fdata2
object is (n2
x m
), where n2
is the number of points
observed in t
coordinates with lenght m
.
Manuel Febrero-Bande, Manuel Oviedo de la Fuente manuel.oviedo@usc.es
Let
metric.lp.
if (FALSE) {
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)))
}
Run the code above in your browser using DataLab