This is documentation for Mathematica 6, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)
Distance and Dissimilarity Measures
Different measures of distance or dissimilarity are convenient for different types of analysis. Mathematica provides built-in functions for many standard distance measures, as well as the capability to give a symbolic definition for an arbitrary measure.
Numerical Data
Boolean Data
String Data
DistanceFunction option for specifying distance functions
Nearest  ▪ FindClusters  ▪ FindShortestTour  ▪ ...