Skip to content

信道编码 — 练习

Download exercise.py

实现 syndrome_pos(s0, s1, s2) = s0 + 2*s1 + 4*s2。三个校验比特合成 1-index 错误位置;0 表示无错。

bash
cd docs/information/channel-coding/code
python exercise.py

源码位置

clone 后打开(相对仓库根目录):

docs/information/channel-coding/code/exercise.py