The Hamming distance of two vectors corresponds to the number of positions where the values differ.
Arguments
- x
A numeric or logical vector
- y
A numeric or logical vector
- norm
If
TRUE
normalize the distance to the vector length. By default it'sFALSE