std::vector< std::vector< double > > get_R()
Returns the variable R.
void set_alist(alist _list)
Initializes the class using given alist.
std::vector< double > get_lr()
Returns the variable lr.
void spa_initialize()
Initializes the sum product algorithm set-up.
std::vector< uint8_t > get_estimate()
Returns the current estimate.
void update_chks()
Updates the check-nodes based on messages from variable nodes.
bool is_codeword(const std::vector< uint8_t > codeword)
Checks if the input is a codeword.
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.
void set_K(int k)
Sets the variable K.
GF2Mat get_H()
Returns the variable H.
int get_K()
Returns the variable K.
awgn_bp(alist _list)
A constructor for given alist.
std::vector< std::vector< double > > get_Q()
Returns the variable Q.
std::vector< uint8_t > get_syndrome()
Returns the syndrome for the current estimate.
void update_vars()
Updates the variable-nodes based on messages from check nodes.
void set_max_iterations(int k)
Sets the variable max_iterations.
awgn_bp()
Default constructor.
Definition awgn_bp.h:37
int get_max_iterations()
Returns the variable max_iterations.
std::vector< double > get_rx_lr()
Returns the variable rx_lr.
awgn_bp(const GF2Mat X)
A constructor for given GF2Mat.
std::vector< uint8_t > get_syndrome(const std::vector< uint8_t > codeword)
Returns the syndrome for the input codeword.
std::vector< uint8_t > decode(std::vector< float > rx_word, int *niterations)
Decodes the given vector rx_word by message passing.
void compute_init_estimate(std::vector< float > rx_word)
Computes initial estimate based on the vector rx_word.
STL class.
Definition vector_docstub.h:11
#define FEC_API
Definition gr-fec/include/gnuradio/fec/api.h:18