From f737dc447be394e509907acec90a6a4492e16995 Mon Sep 17 00:00:00 2001 From: Achilleas Anastasopoulos Date: Fri, 18 Feb 2011 23:55:50 -0500 Subject: templated siso_combined removed Makefile.gen from git tracking --- .../src/lib/trellis_sccc_decoder_combined_XX.cc.t | 333 +-------------------- 1 file changed, 3 insertions(+), 330 deletions(-) (limited to 'gr-trellis/src/lib/trellis_sccc_decoder_combined_XX.cc.t') diff --git a/gr-trellis/src/lib/trellis_sccc_decoder_combined_XX.cc.t b/gr-trellis/src/lib/trellis_sccc_decoder_combined_XX.cc.t index c23445e61..f354197dd 100644 --- a/gr-trellis/src/lib/trellis_sccc_decoder_combined_XX.cc.t +++ b/gr-trellis/src/lib/trellis_sccc_decoder_combined_XX.cc.t @@ -30,6 +30,8 @@ #include #include #include +#include "core_algorithms.h" + static const float INF = 1.0e9; @@ -73,7 +75,7 @@ trellis_make_@BASE_NAME@ ( gr_make_io_signature (1, 1, sizeof (@I_TYPE@)), gr_make_io_signature (1, 1, sizeof (@O_TYPE@))), d_FSMo (FSMo), d_STo0 (STo0), d_SToK (SToK), - d_FSMi (FSMo), d_STi0 (STi0), d_STiK (STiK), + d_FSMi (FSMi), d_STi0 (STi0), d_STiK (STiK), d_INTERLEAVER (INTERLEAVER), d_blocklength (blocklength), d_repetitions (repetitions), @@ -96,339 +98,10 @@ void for (unsigned int i = 0; i < ninputs; i++) { ninput_items_required[i] = input_required; } -} - -//======================================= - -inline float min(float a, float b) -{ - return a <= b ? a : b; -} - -inline float min_star(float a, float b) -{ - return (a <= b ? a : b)-log(1+exp(a <= b ? a-b : b-a)); -} - - -//======================================= - -void siso_outer_algorithm(int I, int S, int O, - const std::vector &NS, - const std::vector &OS, - const std::vector< std::vector > &PS, - const std::vector< std::vector > &PI, - int K, - int S0,int SK, - bool POSTI, bool POSTO, - float (*p2mymin)(float,float), - const float *priori, const float *prioro, float *post, - @O_TYPE@ *data - ) -{ - float norm,mm,minm; - std::vector alpha(S*(K+1)); - std::vector beta(S*(K+1)); - - - if(S0<0) { // initial state not specified - for(int i=0;i=0;k--) { // backward recursion - norm=INF; - for(int j=0;j &NS, - const std::vector &OS, - const std::vector< std::vector > &PS, - const std::vector< std::vector > &PI, - int K, - int S0,int SK, - bool POSTI, bool POSTO, - float (*p2mymin)(float,float), - int D, - const std::vector<@I_TYPE@> &TABLE, - trellis_metric_type_t TYPE, - const float *priori, const @I_TYPE@ *observations, float *post - ) -{ - float norm,mm,minm; - std::vector alpha(S*(K+1)); - std::vector beta(S*(K+1)); - float *prioro = new float[O*K]; - - - if(S0<0) { // initial state not specified - for(int i=0;i=0;k--) { // backward recursion - norm=INF; - for(int j=0;j &TABLE, - trellis_metric_type_t METRIC_TYPE, - const @I_TYPE@ *observations, @O_TYPE@ *data - ) -{ - - - - } - //d_FSMo.I(),d_FSMo.S(),d_FSMo.O(),d_FSMo.NS(),d_FSMo.OS(),d_FSMo.PS(),d_FSMo.PI(), //=========================================================== int -- cgit