| license: mit | |
| tags: | |
| - pytorch | |
| - safetensors | |
| - threshold-logic | |
| - neuromorphic | |
| - error-correction | |
| - bch | |
| - hamming | |
| # threshold-bch-encoder | |
| BCH(7,4) encoder (Hamming code). Encodes 4 data bits to 7-bit codeword. Can correct 1 error. | |
| ## Encoding | |
| ``` | |
| D3 D2 D1 D0 β C6 C5 C4 C3 C2 C1 C0 | |
| βββββββββββ ββββββββ | |
| data bits parity | |
| ``` | |
| ## Parameters | |
| | | | | |
| |---|---| | |
| | Data bits | 4 | | |
| | Codeword | 7 | | |
| | Correction | 1 bit | | |
| | Parameters | 65 | | |
| ## License | |
| MIT | |