HammingDistance
HammingDistance[u,v]
gives the Hamming distance between strings, vectors or biomolecular sequences u and v.
Details and Options
- HammingDistance[u,v] gives the number of elements whose values disagree in u and v.
- For strings, setting the option IgnoreCase->True makes HammingDistance treat lowercase and uppercase letters as equivalent.
Examples
open allclose allBasic Examples (3)
Scope (2)
Applications (2)
Properties & Relations (2)
HammingDistance is equivalent to ManhattanDistance for 0, 1 data:
HammingDistance is greater than or equal to EditDistance:
Wolfram Research (2007), HammingDistance, Wolfram Language function, https://reference.wolfram.com/language/ref/HammingDistance.html (updated 2020).
Text
Wolfram Research (2007), HammingDistance, Wolfram Language function, https://reference.wolfram.com/language/ref/HammingDistance.html (updated 2020).
CMS
Wolfram Language. 2007. "HammingDistance." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2020. https://reference.wolfram.com/language/ref/HammingDistance.html.
APA
Wolfram Language. (2007). HammingDistance. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/HammingDistance.html