- 一、欧氏距离(Euclidean Distance)
- 二、曼哈顿距离(Manhattan Distance)
- 三、 切比雪夫距离 (Chebyshev Distance):
- 四、 闵可夫斯基距离(Minkowski Distance):
- 五、 马氏距离(Mahalanobis Distance):
- 六、 标准化欧氏距离 (Standardized Euclidean Distance):
- 七、 汉明距离(Hamming Distance):
- 八、杰卡德距离(Jaccard Distance):
- 九、巴氏距离
一、欧氏距离(Euclidean Distance)
d12=(x1−x2)2+(y1−y2)2−−−−−−−−−−−−−−−−−−√ d 12 = ( x 1 − x 2 ) 2 + ( y 1 − y 2 ) 2
三维空间点 a(x1,y1,z1) 与 b(x2,y2,z2)间的欧氏距离:
d12=(x1−x2)2+(y1−y2)2+(z1−z2)2−−−−−−−−−−−−−−−−−−−−−−−−−−−−√ d 12 = ( x 1 − x 2 ) 2 + ( y 1 − y 2 ) 2 + ( z 1 − z 2 ) 2
n维空间点
a(x11,x12,…,x1n)与b(x12,x12,…,x1n)
a
(
x
11
,
x
12
,
…
,
x
1
n
)
与
b
(
x
12
,
x
12
,
…
,
x
1
n
)
间的欧氏距离:
d12=∑k=1n(x1k−x2k)2−−−−−−−−−−−−√ d 12 = ∑ k = 1 n ( x 1 k − x 2 k ) 2
二、曼哈顿距离(Manhattan Distance)
d12=|x1−x2|+|y1−y2| d 12 = | x 1 − x 2 | + | y 1 − y 2 |
d12=∑k=1n|x1k−x2k| d 12 = ∑ k = 1 n | x 1 k − x 2 k |
三、 切比雪夫距离 (Chebyshev Distance):
四、 闵可夫斯基距离(Minkowski Distance):
五、 马氏距离(Mahalanobis Distance):
六、 标准化欧氏距离 (Standardized Euclidean Distance):
七、 汉明距离(Hamming Distance):
八、杰卡德距离(Jaccard Distance):
九、巴氏距离