Hausdorff Convex Set Distance
This class calculates the Hausdorff distance between convex polygons. The Hausdorff distance between sets X and Y,
dH(X, Y) = max x:X{ min y:Y {d(x,y)}},
with the symmetric Hausdorff distance being
dsymH(X, Y) = max{ dH(X, Y), dH(Y, X) }.
The methods are hausdorff and symmetricHausdorff, respectively.
The heavy lifting of the class is done by the method pointDist which
finds the minimum distance between a point and a convex Polygon.
The polygons may have vertices sorted clockwise or counter-clockwise (the user must supply which), and are assumed to be convex.
Cite As
Richard Katzwer (2024). Hausdorff Convex Set Distance (https://www.mathworks.com/matlabcentral/fileexchange/44278-hausdorff-convex-set-distance), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.