metric function
Sign in to saveAlso known as distance function, metric, distance metric, distance
mathematical function that defines a distance between elements of a set
~40 min read
Encyclopedic overview
The plane (a set of points) can be equipped with different metrics. In the taxicab metric the red, yellow and blue paths have the same length (12), and are all shortest paths. In the Euclidean metric, the green path has length
6
Excerpted from Wikipedia’s “metric function” article, available under the CC BY-SA 4.0 licence.