diff options
author | anastas <anastas@221aa14e-8319-0410-a670-987f0aec2ac5> | 2007-02-13 05:26:07 +0000 |
---|---|---|
committer | anastas <anastas@221aa14e-8319-0410-a670-987f0aec2ac5> | 2007-02-13 05:26:07 +0000 |
commit | d1e790baef141358b6a594b375e3b553f2d995eb (patch) | |
tree | 43a8dbddfc15d3f78abbd55c8f047d6ee2d665bb /gnuradio-examples/python/channel-coding/test_turbo_equalization.py | |
parent | 30c2e70fad2fc3fe75cbf9b2cb60399771fd2ba3 (diff) |
update examples to reflect latest changes in gr-trellis
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@4470 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gnuradio-examples/python/channel-coding/test_turbo_equalization.py')
-rwxr-xr-x | gnuradio-examples/python/channel-coding/test_turbo_equalization.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gnuradio-examples/python/channel-coding/test_turbo_equalization.py b/gnuradio-examples/python/channel-coding/test_turbo_equalization.py index 1138262382..ff0497e2b0 100755 --- a/gnuradio-examples/python/channel-coding/test_turbo_equalization.py +++ b/gnuradio-examples/python/channel-coding/test_turbo_equalization.py @@ -110,6 +110,7 @@ def main(args): sys.exit (1) bitspersymbol = int(round(math.log(fo.I())/math.log(2))) # bits per FSM input symbol K=Kb/bitspersymbol # packet size in trellis steps + print 'size = ',K interleaver=trellis.interleaver(K,666) # construct a random interleaver tot_channel = fsm_utils.make_isi_lookup(modulation,channel,True) # generate the lookup table (normalize energy to 1) dimensionality = tot_channel[0] @@ -126,6 +127,7 @@ def main(args): for i in range(rep): (s,e)=run_test(fo,fi,interleaver,Kb,bitspersymbol,K,dimensionality,tot_constellation,1,N0,IT,-long(666+i)) # run experiment with different seed to get different noise realizations + print s tot_s=tot_s+s terr_s=terr_s+e terr_p=terr_p+(terr_s!=0) |