Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Find the Hausdorff distance between two sets of elements
ResourceFunction["DiscreteHausdorffDistance"][set1, set2] returns the Hausdorff distance between two sets, which is the maximum distance you need to travel from a point in one set to reach a point in the other. |
Measure the distance between two sets of numbers:
| In[1]:= |
| Out[1]= |
This is the maximum of the following distances:
| In[2]:= |
| Out[2]= |
| In[3]:= |
| Out[3]= |
| In[4]:= |
| Out[4]= |
Compute the distance between sets of points in 2D space:
| In[6]:= | ![]() |
| Out[9]= |
Show the maximum distances from one set to the other as arrows. DiscreteHausdorffDistance is equal to the longest of these two arrows:
| In[10]:= | ![]() |
| Out[11]= | ![]() |
This work is licensed under a Creative Commons Attribution 4.0 International License