ハミング距離
where formula_7 is the Hamming distance between formula_8 and formula_9.