ex-ham7b

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

TXT
22
字号
#!/bin/sh# Example of coding using a (7,4) Hamming code, with transmission through# a Binary Symmetric Channel with error probability of 0.05.## This example shows how random source messages can be encoded as codewords, # transmitted through the simulated channel, decoded, and the message bits# extracted from the codewords.  The final result is in ex-ham7b.ext, which can# be compared to ex-ham7b.src.set -e  # Stop if an error occursset -v  # Echo commands as they are read  make-pchk ex-ham7b.pchk 3 7 0:0 0:3 0:4 0:5 1:1 1:3 1:4 1:6 2:2 2:4 2:5 2:6make-gen  ex-ham7b.pchk ex-ham7b.gen denserand-src  ex-ham7b.src 1 4x1000encode    ex-ham7b.pchk ex-ham7b.gen ex-ham7b.src ex-ham7b.enctransmit  ex-ham7b.enc ex-ham7b.rec 1 bsc 0.05decode    ex-ham7b.pchk ex-ham7b.rec ex-ham7b.dec bsc 0.05 enum-bit ex-ham7b.genverify    ex-ham7b.pchk ex-ham7b.dec ex-ham7b.gen ex-ham7b.srcextract   ex-ham7b.gen ex-ham7b.dec ex-ham7b.ext

⌨️ 快捷键说明

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