Crate cai_hamming[][src]

Decoding of Hamming codes for common air interfaces

This algorithm is sourced from Coding Theory and Cryptography: The Essentials, Hankerson, Hoffman, et al, 2000.

Functions

decode

Decode the given N-bit word to the nearest codeword using the given M×N parity-check matrix and 2M×N error location lookup table, correcting up to one bit error.