HammingDistance

HammingDistance[u,v]

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

Details and Options

Examples

open allclose all

Basic Examples  (3)

Hamming distance between two strings:

Hamming distance between two vectors:

Hamming distance between two biomolecular sequences:

Scope  (2)

Compute distance between any strings of equal length:

Compute distance between any vectors of equal length:

Options  (1)

IgnoreCase  (1)

Obtain Hamming distance, ignoring case of letters:

Applications  (2)

Cluster string data using Hamming distance:

Cluster numeric data using Hamming distance:

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

BibTeX

@misc{reference.wolfram_2024_hammingdistance, author="Wolfram Research", title="{HammingDistance}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/HammingDistance.html}", note=[Accessed: 21-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_hammingdistance, organization={Wolfram Research}, title={HammingDistance}, year={2020}, url={https://reference.wolfram.com/language/ref/HammingDistance.html}, note=[Accessed: 21-November-2024 ]}