23 #ifndef INCLUDED_CORE_ALGORITHMS_H
24 #define INCLUDED_CORE_ALGORITHMS_H
35 float min(
float a,
float b);
40 const std::vector<int> &NS,
41 const std::vector<int> &OS,
42 const std::vector< std::vector<int> > &PS,
43 const std::vector< std::vector<int> > &PI,
46 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,
59 const Ti *in, To *out);
62 const std::vector<int> &NS,
63 const std::vector<int> &OS,
64 const std::vector< std::vector<int> > &PS,
65 const std::vector< std::vector<int> > &PI,
68 bool POSTI,
bool POSTO,
69 float (*p2mymin)(
float,
float),
70 const float *priori,
const float *prioro,
float *post);
74 const std::vector<int> &NS,
75 const std::vector<int> &OS,
76 const std::vector< std::vector<int> > &PS,
77 const std::vector< std::vector<int> > &PI,
80 bool POSTI,
bool POSTO,
81 float (*p2mymin)(
float,
float),
83 const std::vector<T> &TABLE,
85 const float *priori,
const T *observations,
float *post);
89 const fsm &FSMi,
int STi0,
int STiK,
90 const interleaver &INTERLEAVER,
int blocklength,
int iterations,
91 float (*p2mymin)(
float,
float),
92 const float *iprioro, T *data);
94 template<
class Ti,
class To>
96 const fsm &FSMi,
int STi0,
int STiK,
97 const interleaver &INTERLEAVER,
int blocklength,
int iterations,
98 float (*p2mymin)(
float,
float),
99 int D,
const std::vector<Ti> &TABLE,
102 const Ti *observations, To *data);
106 const fsm &FSM2,
int ST20,
int ST2K,
107 const interleaver &INTERLEAVER,
int blocklength,
int iterations,
108 float (*p2mymin)(
float,
float),
109 const float *cprioro, T *data);
111 template<
class Ti,
class To>
113 const fsm &FSM2,
int ST20,
int ST2K,
114 const interleaver &INTERLEAVER,
int blocklength,
int iterations,
115 float (*p2mymin)(
float,
float),
116 int D,
const std::vector<Ti> &TABLE,
119 const Ti *observations, To *data);