?? cmp_exact_apps_on_tree.py
字號:
"""This regression test decodes various tree codes via brute forceand makes sure the results correspond to the output of thesum-product algorithm."""from pycodes.utils.testing import *p = 0.15TestLDPCCodeOnBSC('(7,6) Single Parity Check Code',7,6,1,[range(7)],p,1)TestLDPCCodeOnBSC('(5,3) Double Parity Check Code',5,3,2,[[0,1,2],[2,3,4]], p,2)TestLDPCCodeOnBSC('(7,4) Triple Parity Check Code',7,4,3, [[0,1,2],[2,3,4],[4,5,6]],p,3)TestLDPCCodeOnBSC('(7,6) Single Parity Check Code',7,6,1,[range(7)],p,1, verbose=0,evType='r',alg='LRSumProductBP')TestLDPCCodeOnBSC('(5,3) Double Parity Check Code',5,3,2,[[0,1,2],[2,3,4]], p,2,verbose=0,evType='r',alg='LRSumProductBP')TestLDPCCodeOnBSC('(7,4) Triple Parity Check Code',7,4,3, [[0,1,2],[2,3,4],[4,5,6]],p,3, verbose=0,evType='r',alg='LRSumProductBP')
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -