pseudometrics
A pseudometric on a set X is a function d: X × X → [0, ∞) that satisfies three properties for all x, y, z in X: symmetry d(x, y) = d(y, x), nonnegativity d(x, y) ≥ 0, and the triangle inequality d(x, z) ≤ d(x, y) + d(y, z). In addition, a pseudometric requires that d(x, x) = 0 for every x. What distinguishes a pseudometric from a metric is the relaxation of the identity of indiscernibles: a pseudometric may have d(x, y) = 0 for x ≠ y.
A pseudometric induces a natural topology on X and makes X into a pseudometric space. If d(x,
Common constructions give rise to many pseudometrics. For any function f: X → R, the quantity d(x,
Pseudometrics are widely used to induce topologies, measure similarity, and define distances when the identity of