HammingDistance

HammingDistance[u,v]

gives the Hamming distance between strings or vectors u and v.

Details and Options

Examples

open allclose all

Basic Examples  (2)

Hamming distance between two strings:

In[1]:=
Click for copyable input
Out[1]=

Hamming distance between two vectors:

In[1]:=
Click for copyable input
Out[1]=

Scope  (2)

Options  (1)

Applications  (2)

Properties & Relations  (2)

See Also

EditDistance  JaccardDissimilarity  BitXor  DigitCount  Nearest  CentralFeature

Tutorials

Introduced in 2007
(6.0)