49 std::vector<std::vector<double>>
get_Q();
52 std::vector<std::vector<double>>
get_R();
88 std::vector<uint8_t>
get_syndrome(
const std::vector<uint8_t> codeword);
115 std::vector<uint8_t>
decode(std::vector<float> rx_word,
int* niterations);
134 std::vector<std::vector<double>> R;
137 std::vector<std::vector<double>> Q;
140 std::vector<double> rx_lr;
143 std::vector<double> lr;
146 std::vector<std::vector<int>> nlist;
149 std::vector<std::vector<int>> mlist;
152 std::vector<int> num_nlist;
155 std::vector<int> num_mlist;
158 std::vector<uint8_t> estimate;
std::vector< std::vector< double > > get_R()
Returns the variable R.
void set_alist(alist _list)
Initializes the class using given alist.
void spa_initialize()
Initializes the sum product algorithm set-up.
std::vector< double > get_lr()
Returns the variable lr.
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.
std::vector< uint8_t > get_estimate()
Returns the current estimate.
void set_K(int k)
Sets the variable K.
std::vector< double > get_rx_lr()
Returns the variable rx_lr.
GF2Mat get_H()
Returns the variable H.
std::vector< uint8_t > get_syndrome()
Returns the syndrome for the current estimate.
int get_K()
Returns the variable K.
std::vector< std::vector< double > > get_Q()
Returns the variable Q.
awgn_bp(alist _list)
A constructor for given alist.
std::vector< uint8_t > get_syndrome(const std::vector< uint8_t > codeword)
Returns the syndrome for the input codeword.
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.
awgn_bp(const GF2Mat X)
A constructor for given GF2Mat.
void compute_init_estimate(std::vector< float > rx_word)
Computes initial estimate based on the vector rx_word.
std::vector< uint8_t > decode(std::vector< float > rx_word, int *niterations)
Decodes the given vector rx_word by message passing.
#define FEC_API
Definition: gr-fec/include/gnuradio/fec/api.h:18