__init__.py
来自「著名的ldpc编解码的资料及源代码」· Python 代码 · 共 30 行
PY
30 行
"""The tests modules contain various tests both to insure that theprogram is running correctly as well as to simulate codes ongraphs with various parameters and decoding algorithms.Tests for channel coding are in the sub-module channel_codingwhile tests for quantization are in the sub-module quantization.The function DoRegressionTests() provided by this moduleruns various regression tests to insure that everything is workingcorrectly."""import sysdef DoRegressionTests(): sys.stdout.write('Doing quantization tests:\n') sys.stdout.flush() from pycodes.tests.quantization.BEC import bec_quant sys.stdout.write('Doing channel coding tests:\n') sys.stdout.flush() from pycodes.tests.channel_coding.BSC import cmp_exact_apps_on_tree from pycodes.tests.channel_coding.BSC import regress from pycodes.tests.channel_coding.BEC import regress
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?