?? hamming_bec_perf.py
字號:
"""This script tests the BEC quantizer on the dual of a Hamming code.The features that make this test interesting are that the code issmall enough to visualize or decode with pencil and paper, yet stillcontains cycles. """from pycodes.utils.bec_quant_perf import *tester = BECTester([CodeParams(N=7,K=4,E=12,L=[[0,1,2,4],[1,2,3,5],[2,3,4,6]], name='Hamming BEC Test', numToErase=[0,1,2,3,4,5,6], numTrials=[100]*7)])tester.ReportStats(title='Dual of (7,4) Hamming Code Test', reportFile='/tmp/Hamming_BEC_perf.txt', imgFile='/tmp/Hamming_BEC_perf.eps')
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -