Skip to main content

hamming_code

Function hamming_code 

Source
pub fn hamming_code(r: usize) -> BinaryCode
Expand description

Construct the Hamming code Ham(r, 2).

Parameters: [2^r − 1, 2^r − 1 − r, 3].