metric function: a function of a topological space that gives, for any two points in the space, a value equal to the distance between them
function: (mathematics) a mathematical relation such that each element of a given set (the domain of the function) is associated with an element of another set (the range of the function)