DOC: Improve CCT documentation for HammingCodes (#167)

This commit is contained in:
quacksouls
2022-10-30 19:24:09 +11:00
committed by GitHub
parent 0519b6adf7
commit 634611f9db
2 changed files with 5 additions and 4 deletions
+3 -2
View File
@@ -272,8 +272,9 @@ The list contains the name of (i.e. the value returned by
| HammingCodes: Integer to Encoded Binary | | You are given a decimal value. |
| | | Convert it into a binary string and encode it as a 'Hamming-Code'. eg: |
| | | Value 8 will result into binary '1000', which will be encoded |
| | | with the pattern 'pppdpddd', where p is a paritybit and d a databit, |
| | | or '10101' (Value 21) will result into (pppdpdddpd) '1001101011'. |
| | | with the pattern 'pppdpddd', where p is a paritybit and d a databit. The encoding of |
| | | 8 is 11110000. As another example, '10101' (Value 21) will result into (pppdpdddpd) |
| | | '1001101011'. |
| | | NOTE: You need an parity Bit on Index 0 as an 'overall'-paritybit. |
| | | NOTE 2: You should watch the HammingCode-video from 3Blue1Brown, which |
| | | explains the 'rule' of encoding, |