summaryrefslogtreecommitdiff
path: root/gr-trellis/src/lib/trellis_viterbi_b.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_b.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_b.cc')
-rw-r--r--gr-trellis/src/lib/trellis_viterbi_b.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gr-trellis/src/lib/trellis_viterbi_b.cc b/gr-trellis/src/lib/trellis_viterbi_b.cc
index dbcd85bbd..2e005a316 100644
--- a/gr-trellis/src/lib/trellis_viterbi_b.cc
+++ b/gr-trellis/src/lib/trellis_viterbi_b.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 {