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);
void viterbi_algorithm(int I, int S, int O, const std::vector< int > &NS, const std::vector< int > &OS, const std::vector< std::vector< int > > &PS, const std::vector< std::vector< int > > &PI, int K, int S0, int SK, const float *in, T *out)
void pccc_decoder_combined(const fsm &FSM1, int ST10, int ST1K, const fsm &FSM2, int ST20, int ST2K, const interleaver &INTERLEAVER, int blocklength, int iterations, float(*p2mymin)(float, float), int D, const std::vector< Ti > &TABLE, digital::trellis_metric_type_t METRIC_TYPE, float scaling, const Ti *observations, To *data)
void sccc_decoder(const fsm &FSMo, int STo0, int SToK, const fsm &FSMi, int STi0, int STiK, const interleaver &INTERLEAVER, int blocklength, int iterations, float(*p2mymin)(float, float), const float *iprioro, T *data)
void siso_algorithm_combined(int I, int S, int O, const std::vector< int > &NS, const std::vector< int > &OS, const std::vector< std::vector< int > > &PS, const std::vector< std::vector< int > > &PI, int K, int S0, int SK, bool POSTI, bool POSTO, float(*p2mymin)(float, float), int D, const std::vector< T > &TABLE, digital::trellis_metric_type_t TYPE, const float *priori, const T *observations, float *post)
float min(float a, float b)
void sccc_decoder_combined(const fsm &FSMo, int STo0, int SToK, const fsm &FSMi, int STi0, int STiK, const interleaver &INTERLEAVER, int blocklength, int iterations, float(*p2mymin)(float, float), int D, const std::vector< Ti > &TABLE, digital::trellis_metric_type_t METRIC_TYPE, float scaling, const Ti *observations, To *data)
void pccc_decoder(const fsm &FSM1, int ST10, int ST1K, const fsm &FSM2, int ST20, int ST2K, const interleaver &INTERLEAVER, int blocklength, int iterations, float(*p2mymin)(float, float), const float *cprioro, T *data)
trellis_metric_type_t
Definition: metric_type.h:29
float min_star(float a, float b)
Include this header to use the message passing features.
Definition: logger.h:131
void siso_algorithm(int I, int S, int O, const std::vector< int > &NS, const std::vector< int > &OS, const std::vector< std::vector< int > > &PS, const std::vector< std::vector< int > > &PI, int K, int S0, int SK, bool POSTI, bool POSTO, float(*p2mymin)(float, float), const float *priori, const float *prioro, float *post)
void viterbi_algorithm_combined(int I, int S, int O, const std::vector< int > &NS, const std::vector< int > &OS, const std::vector< std::vector< int > > &PS, const std::vector< std::vector< int > > &PI, int K, int S0, int SK, int D, const std::vector< Ti > &TABLE, digital::trellis_metric_type_t TYPE, const Ti *in, To *out)
#define S(x)
Definition: rpcserver_thrift.h:37