ハミング距離
Given a received codeword formula_6, minimum distance decoding picks a codeword formula_7 to minimise the Hamming distance: