The Hamming distance is the number of differing characters, no? Anyway, you could sum the bits in the xor between the elements of the UInt8 vector you created. I think there is a popcnt
in Julia.
Edit: it is called count_ones
The Hamming distance is the number of differing characters, no? Anyway, you could sum the bits in the xor between the elements of the UInt8 vector you created. I think there is a popcnt
in Julia.
Edit: it is called count_ones