Calculates the Hamming distance between a and b.
a
b
The first vector.
The second vector.
The Hamming distance between the two vectors.
An error if the vectors do not have the same length.
https://en.wikipedia.org/wiki/Hamming_distance
Calculates the Hamming distance between
a
andb
.