Previous Up Next

5.2.17  Hamming distance

The hamdist command computes the Hamming distance between two sequences of equal lengths, which is defined to be the number of elements at same positions which do not match.

Example

hamdist("cats","dogs")
     
3           

Previous Up Next