up:: Metric Space
A function over some set is a metric if it satisfies the following properties:
- Non-degeneracy:
- Triangle Inequality:
- Positivity:
- Commutativity:
Sufficient conditions for a metric
One can shrink these conditions to two:
- Non-degeneracy (as above)
- (Modified) Triangular Inequality:
From those two, one can prove the other conditions:
- :
- : and
Examples of metrics
Euclidean spaces
The initial motivation for metric spaces comes from with the Euclidean metric
Trivial metric
An example of a metric borne out of this general definition is the trivial metric:
Supremum norm and distances in function space
Consider the set of all continuous functions over , and define the supremum norm as