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);
137 std::vector<std::vector<double>> R;
140 std::vector<std::vector<double>> Q;
143 std::vector<double> rx_lr;
146 std::vector<double> lr;
149 std::vector<std::vector<int>> nlist;
152 std::vector<std::vector<int>> mlist;
155 std::vector<int> num_nlist;
158 std::vector<int> num_mlist;
161 std::vector<uint8_t> estimate;
std::vector< std::vector< double > > get_R()
Returns the variable R.
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.
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_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:37
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.
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.
awgn_bp(alist _list, float sgma)
A constructor for given alist and sigma.
#define FEC_API
Definition: gr-fec/include/gnuradio/fec/api.h:18