X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=gr-trellis%2Fsrc%2Flib%2Ftrellis_viterbi_b.cc;h=ead61b197a111b7cbc80bfcd4c23a022b2a2dae1;hb=ea29b08aeb54227e6628f655ccfdb96fe4d8c378;hp=e30f51388ac38bf8e6e3c39874421a6cc5d500e5;hpb=18a684bf3dc144c48fc4cc6cc72f5070febd8074;p=debian%2Fgnuradio diff --git a/gr-trellis/src/lib/trellis_viterbi_b.cc b/gr-trellis/src/lib/trellis_viterbi_b.cc index e30f5138..ead61b19 100644 --- a/gr-trellis/src/lib/trellis_viterbi_b.cc +++ b/gr-trellis/src/lib/trellis_viterbi_b.cc @@ -6,7 +6,7 @@ * * GNU Radio is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) + * the Free Software Foundation; either version 3, or (at your option) * any later version. * * GNU Radio is distributed in the hope that it will be useful, @@ -20,6 +20,8 @@ * Boston, MA 02110-1301, USA. */ +// WARNING: this file is machine generated. Edits will be over written + #ifdef HAVE_CONFIG_H #include "config.h" #endif @@ -77,8 +79,8 @@ trellis_viterbi_b::forecast (int noutput_items, gr_vector_int &ninput_items_requ void viterbi_algorithm(int I, int S, int O, const std::vector &NS, const std::vector &OS, - const std::vector &PS, - const std::vector &PI, + const std::vector< std::vector > &PS, + const std::vector< std::vector > &PI, int K, int S0,int SK, const float *in, unsigned char *out)//, @@ -106,9 +108,9 @@ void viterbi_algorithm(int I, int S, int O, for(int j=0;j=0;k--) { // traceback - int i0=st*I+trace[k*S+st]; - out[k]= (unsigned char) PI[i0]; - st=PS[i0]; + int i0=trace[k*S+st]; + out[k]= (unsigned char) PI[st][i0]; + st=PS[st][i0]; } }