Compute the Hausdorff distances between two curves.
Source:R/metric.hausdorff.R
metric.hausdorff.Rd
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).
Details
Let \(G(X)=\left\{ (t,X(t))\in R^2 \right\}\) and \(G(Y)=\left\{(t,Y(t))\in R^2\right\}\) be two graphs of the considered curves \(X\) and \(Y\) respectively, the Hausdorff distance \(d_H(X, Y)\) is defined as,
$$ d_H(X,Y)=max\left\{ sup_{x\in G(X)} inf_{y\in G(Y)} d_2(x,y),
sup_{y\in G(Y)} inf_{x\in G(X)}d_2(x,y)\right\},$$
where \(d_2(x,y)\) is the euclidean distance, see metric.lp.
Author
Manuel Febrero-Bande, Manuel Oviedo de la Fuente manuel.oviedo@udc.es