itca.compute_hamming_distance¶
- itca.compute_hamming_distance(v1, v2)¶
Compute the Hamming distance between two binary strings or binary vector
- Parameters
v1 (str or binary array) – A binary vector or string.
v2 (str or binary array) – The compared binary vector or string.
- Returns
The Hamming distance between the two vectors.
- Return type
int