ex-ldpc-encode

来自「关于LDPC编/译码的方针平台。能随机产生信源和模拟高斯信道。」· 代码 · 共 46 行

TXT
46
字号
#!/bin/sh# Example of how an LDPC code can be encoded using using sparse,# dense, and mixed representations of the generator matrix.  The dense# and mixed representations are based on the same set of message bits# as the sparse method with minprod heuristic.  This allows the correctness # of these methods to be checked by verifying that they all produce the same # result when encoding random messages.  The results are also checked by # 'verify'.## A (400,200) LDPC code with 3 checks per bit is used for the test.set -e  # Stop if an error occursset -v  # Echo commands as they are readmake-ldpc ex-ldpc-encode.pchk 200 400 1 evenboth 3 make-gen  ex-ldpc-encode.pchk ex-ldpc-encode.genf sparse firstmake-gen  ex-ldpc-encode.pchk ex-ldpc-encode.genc sparse mincolmake-gen  ex-ldpc-encode.pchk ex-ldpc-encode.genp sparse minprodmake-gen  ex-ldpc-encode.pchk ex-ldpc-encode.gend dense ex-ldpc-encode.genpmake-gen  ex-ldpc-encode.pchk ex-ldpc-encode.genm mixed ex-ldpc-encode.genprand-src  ex-ldpc-encode.src 1 200x10encode    ex-ldpc-encode.pchk ex-ldpc-encode.genf ex-ldpc-encode.src \          ex-ldpc-encode.encfencode    ex-ldpc-encode.pchk ex-ldpc-encode.genc ex-ldpc-encode.src \          ex-ldpc-encode.enccencode    ex-ldpc-encode.pchk ex-ldpc-encode.genp ex-ldpc-encode.src \          ex-ldpc-encode.encpencode    ex-ldpc-encode.pchk ex-ldpc-encode.gend ex-ldpc-encode.src \          ex-ldpc-encode.encdencode    ex-ldpc-encode.pchk ex-ldpc-encode.genm ex-ldpc-encode.src \          ex-ldpc-encode.encmcmp ex-ldpc-encode.encp ex-ldpc-encode.encdcmp ex-ldpc-encode.encp ex-ldpc-encode.encmverify    ex-ldpc-encode.pchk ex-ldpc-encode.encf ex-ldpc-encode.genf \          ex-ldpc-encode.srcverify    ex-ldpc-encode.pchk ex-ldpc-encode.encc ex-ldpc-encode.genc \          ex-ldpc-encode.srcverify    ex-ldpc-encode.pchk ex-ldpc-encode.encp ex-ldpc-encode.genp \          ex-ldpc-encode.src

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?