62 std::vector<std::vector<double> >
get_Q();
65 std::vector<std::vector<double> >
get_R();
128 std::vector<char>
decode(std::vector<float> rx_word,
int* niterations);
150 std::vector<std::vector<double> > R;
153 std::vector<std::vector<double> > Q;
156 std::vector<double> rx_lr;
159 std::vector<double> lr;
162 std::vector<std::vector<int> > nlist;
165 std::vector<std::vector<int> > mlist;
168 std::vector<int> num_nlist;
171 std::vector<int> num_mlist;
174 std::vector<char> estimate;
std::vector< char > get_estimate()
Returns the current estimate.
std::vector< std::vector< double > > get_R()
Returns the variable R.
std::vector< char > decode(std::vector< float > rx_word, int *niterations)
Decodes the given vector rx_word by message passing.
std::vector< double > get_lr()
Returns the variable lr.
void spa_initialize()
Initializes the sum product algorithm set-up.
void update_chks()
Updates the check-nodes based on messages from variable nodes.
void decision()
Computes the estimate based on current likelihood-ratios lr.
bool is_codeword()
Checks if the current estimate is a codeword.
void rx_lr_calc(std::vector< float > codeword)
Calculates the likelihood ratios given an input vector.
std::vector< char > get_syndrome()
Returns the syndrome for the current estimate.
void set_K(int k)
Sets the variable K.
GF2Mat get_H()
Returns the variable H.
std::vector< char > get_syndrome(const std::vector< char > codeword)
Returns the syndrome for the input codeword.
int get_K()
Returns the variable K.
bool is_codeword(const std::vector< char > codeword)
Checks if the input is a codeword.
std::vector< std::vector< double > > get_Q()
Returns the variable Q.
void update_vars()
Updates the variable-nodes based on messages from check nodes.
void set_alist_sigma(alist _list, float sgma)
Initializes the class using given alist and sigma.
void set_max_iterations(int k)
Sets the variable max_iterations.
awgn_bp()
Default constructor.
Definition: awgn_bp.h:50
awgn_bp(const GF2Mat X, float sgma)
A constructor for given GF2Mat and sigma.
int get_max_iterations()
Returns the variable max_iterations.
std::vector< double > get_rx_lr()
Returns the variable rx_lr.
void compute_init_estimate(std::vector< float > rx_word)
Computes initial estimate based on the vector rx_word.
awgn_bp(alist _list, float sgma)
A constructor for given alist and sigma.
#define FEC_API
Definition: gr-fec/include/gnuradio/fec/api.h:30