23 #ifndef INCLUDED_CORE_ALGORITHMS_H
24 #define INCLUDED_CORE_ALGORITHMS_H
34 float min(
float a,
float b);
39 const std::vector<int> &NS,
40 const std::vector<int> &OS,
41 const std::vector< std::vector<int> > &PS,
42 const std::vector< std::vector<int> > &
PI,
45 const float *in, T *out
48 template <
class Ti,
class To>
50 const std::vector<int> &NS,
51 const std::vector<int> &OS,
52 const std::vector< std::vector<int> > &PS,
53 const std::vector< std::vector<int> > &
PI,
57 const std::vector<Ti> &TABLE,
65 const std::vector<int> &NS,
66 const std::vector<int> &OS,
67 const std::vector< std::vector<int> > &PS,
68 const std::vector< std::vector<int> > &
PI,
71 bool POSTI,
bool POSTO,
72 float (*p2mymin)(
float,
float),
73 const float *priori,
const float *prioro,
float *post
79 const std::vector<int> &NS,
80 const std::vector<int> &OS,
81 const std::vector< std::vector<int> > &PS,
82 const std::vector< std::vector<int> > &
PI,
85 bool POSTI,
bool POSTO,
86 float (*p2mymin)(
float,
float),
88 const std::vector<T> &TABLE,
90 const float *priori,
const T *observations,
float *post
96 const fsm &FSMo,
int STo0,
int SToK,
97 const fsm &FSMi,
int STi0,
int STiK,
98 const interleaver &INTERLEAVER,
int blocklength,
int iterations,
99 float (*p2mymin)(
float,
float),
100 const float *iprioro, T *data
104 template<
class Ti,
class To>
106 const fsm &FSMo,
int STo0,
int SToK,
107 const fsm &FSMi,
int STi0,
int STiK,
108 const interleaver &INTERLEAVER,
int blocklength,
int iterations,
109 float (*p2mymin)(
float,
float),
110 int D,
const std::vector<Ti> &TABLE,
113 const Ti *observations, To *data
118 const fsm &FSM1,
int ST10,
int ST1K,
119 const fsm &FSM2,
int ST20,
int ST2K,
120 const interleaver &INTERLEAVER,
int blocklength,
int iterations,
121 float (*p2mymin)(
float,
float),
122 const float *cprioro, T *data
125 template<
class Ti,
class To>
127 const fsm &FSM1,
int ST10,
int ST1K,
128 const fsm &FSM2,
int ST20,
int ST2K,
129 const interleaver &INTERLEAVER,
int blocklength,
int iterations,
130 float (*p2mymin)(
float,
float),
131 int D,
const std::vector<Ti> &TABLE,
134 const Ti *observations, To *data