The Octave Forge package repository is no longer actively maintained. Please find Octave Packages at https://packages.octave.org.

Navigation

Operators and Keywords

Function List:

C++ API

Method on @infsup: hdist (X, Y)

Compute the Hausdorff distance between two intervals as sets.

The Hausdorff distance for closed real intervals is the maximum distance between both pairs of interval boundaries.

If any interval is empty, the result is NaN. For interval arrays the result is computed entry-wise.

Accuracy: The result is correctly-rounded (towards infinity).

hdist (infsup (1, 6), infsup (2, 8))
  ⇒ ans =  2

See also: @infsup/sdist, @infsup/idist.

Package: interval