Metric Space

Metric Space

A set of data with information about the distance between each data point. The distances are measured by the metric/distance function.

Graphs are an example of a metric space.

Definition

A metric space is an ordered pair, like (M,d)(M,d) where MM is a set, and each element in the set is a point. dd is a metric on the set (a function). d:M×MRd:M\times{}M\rightarrow{}R , where all points satisfy these axioms x,y,zMx,y,z\in{M} : 1) point to self is 0: d(x,x)=0d(x,x) = 0 2) distance between two points is always positive ifxy,then d(x,y)>0if x\neq{y}, \text{then } d(x,y) \gt 0 3) x to y and y to x is symmetric d(x,y)=d(y,x)d(x,y)=d(y,x) 4) Triangle inequality is true d(x,z)d(x,y)+d(y,z)d(x,z)\leq{d(x,y)+d(y,z)} MM is often written in place of (M,d)(M,d)