diff --git a/src/core.jl b/src/core.jl index 26c9606..04f8730 100644 --- a/src/core.jl +++ b/src/core.jl @@ -75,7 +75,7 @@ distance = hamming_distance(desc_1, desc_2) Calculates the hamming distance between two descriptors. """ -hamming_distance(desc_1, desc_2) = mean(xor.(desc_1, desc_2)) +hamming_distance(desc_1, desc_2) = sum(xor.(desc_1, desc_2)) / length(desc_1) """ ```