WSJT-X/lib/ldpc/jtmode_codes/ldpc-144-72-search
Steven Franke af03dbe646 Code sf2 has better than 3x10^-5 undetected error rate.
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6441 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
2016-01-26 02:52:07 +00:00

35 lines
1.0 KiB
Bash
Executable File

#!/bin/sh
# Example of a (144,72) LDPC code with 3 checks per bit and 6 bits per
# check, tested on Additive White Gaussian Noise channels with noise standard
# deviations varying from 0.80 to 0.95.
#
# Testing is done by transmitting random messages, which is safer (though
# slower) than using only zero messages. Decoding is done using a maximum
# of 250 iterations of probability propagation.
set -e # Stop if an error occurs
set -v # Echo commands as they are read
for i in `seq 1000 2000`;
do
seed=$i
echo seed $seed
make-ldpc ldpc-144-72.pchk 72 144 $seed evenboth 5x3/5x4 no4cycle
make-gen ldpc-144-72.pchk ldpc-144-72.gen dense
rand-src ldpc-144-72.src 2 72x100000
encode ldpc-144-72.pchk ldpc-144-72.gen ldpc-144-72.src \
ldpc-144-72.enc
# NOISE STANDARD DEVIATION 0.80, Eb/N0 = 1.94 dB
transmit ldpc-144-72.enc ldpc-144-72.rec 1 awgn 0.80
decode ldpc-144-72.pchk ldpc-144-72.rec ldpc-144-72.dec awgn 0.80\
prprp 50
verify ldpc-144-72.pchk ldpc-144-72.dec ldpc-144-72.gen \
ldpc-144-72.src
done