distance function

/ˈdɪstəns ˈfʌŋkʃən/ ディスタンス ファンクション

1. 2つの点や要素間の「距離」を数学的に定義する関数。

数学や計算科学において、ある空間内の2つの対象(点、ベクトル、データなど)がどれだけ離れているかを示す数値を算出するための規則や計算方法を定めたものです。これは、距離の直感的な概念を厳密に定義し、比較可能にするために用いられます。
In mathematics, a distance function, also known as a metric, quantifies the separation between two points in a set. (数学において、距離関数は、メトリックとも呼ばれ、集合内の2点間の隔たりを数値化します。)
関連
Euclidean distance
Manhattan distance
Chebyshev distance
Cosine similarity
Similarity measure