This is documentation for Mathematica 7, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)
Distance and Similarity Measures
Different measures of distance or similarity 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