generated from smyalygames/quartz
322 B
322 B
Definition
A Metric on a set X
is a function d : X \times X \to [ \, 0, \infty \rangle
such that
d(x,y) = d(y, x), \; \forall x,y \in X
d(x, y) = 0 \iff x = y
d(x,z) \leq d(x,y) + d(y, z)
(think of this as a triangle and Pythagoras' Theorem) Think ofd(x, y)
as the distance betweenx
andy
.