summaryrefslogtreecommitdiff
path: root/gr-trellis/src/lib/trellis_viterbi_i.cc
diff options
context:
space:
mode:
authoranastas2006-08-11 07:03:03 +0000
committeranastas2006-08-11 07:03:03 +0000
commitebd3845a6aac08b8b7058963e1d72c93d652f2f3 (patch)
tree7fa125ba4e26f558b5ce496a0ed986f97acaa7b2 /gr-trellis/src/lib/trellis_viterbi_i.cc
parent30f2121800afe283879a3369a7462d699a77af50 (diff)
downloadgnuradio-ebd3845a6aac08b8b7058963e1d72c93d652f2f3.tar.gz
gnuradio-ebd3845a6aac08b8b7058963e1d72c93d652f2f3.tar.bz2
gnuradio-ebd3845a6aac08b8b7058963e1d72c93d652f2f3.zip
1) Minor correction in Viterbi. 2) Checked in interleaver structure
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@3232 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gr-trellis/src/lib/trellis_viterbi_i.cc')
-rw-r--r--gr-trellis/src/lib/trellis_viterbi_i.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gr-trellis/src/lib/trellis_viterbi_i.cc b/gr-trellis/src/lib/trellis_viterbi_i.cc
index b5ae79d1f..58a39f6e5 100644
--- a/gr-trellis/src/lib/trellis_viterbi_i.cc
+++ b/gr-trellis/src/lib/trellis_viterbi_i.cc
@@ -123,7 +123,7 @@ void viterbi_algorithm(const int I, const int S, const int O,
minm=INF;
minmi=0;
for(int i=0;i<S;i++)
- if((mm=trace[(K-1)*S+i])<minm) minm=mm,minmi=i;
+ if((mm=alpha[alphai*S+i])<minm) minm=mm,minmi=i;
st=minmi;
}
else {