Hausdorff distance (source code)

= Hausdorff distance
{c}
{wiki}

= Hausdorff metric
{c}
{synonym}

For nonempty bounded subsets of a metric space,
$$
d_H(A,B)=\max\left\{
\sup_{a\in A}d(a,B),
\sup_{b\in B}d(b,A)
\right\}.
$$
This is a metric on the nonempty closed bounded subsets. Without closedness it is only a pseudometric: a set and its closure have distance zero.