汉明距离

汉明(hamming)距离是两个维数相同的向量,在对应位置元素不同的个数。

例如

[1 3 4]和[1 1 4],由于第二个元素不同,则他们的汉明距离为1。

原文地址:https://www.cnblogs.com/glorey/p/2824352.html