Distance

The distance url1 is a numerical measurement of how far apart objects or points are.

metric space

Dissimilarity measure

Let the dissimilarity measure $D(a, b)$ and the similarity measure $S(a,b)$

where $a$ and $b$ are two object of same space

Similarity measure