GNU Radio's CCSDS Package
lib/fec/ldpc/checknode.h
Go to the documentation of this file.
1 #ifndef CHECKNODE_H
2 #define CHECKNODE_H
3 #include <vector>
4 #include <algorithm>
5 #include <cmath>
6 class checkNode
7 {
8 private:
9  std::vector<int> d_varNodeIndicies;
10  std::vector<double> d_Lq;
11  std::vector<double> d_Lr;
12  double calculateLr(std::vector<double> lq, int index);
13 public:
14  checkNode(std::vector<int> indicies);
15  void updateLr();
16  void updateLq(double newLq);
17  double getLr(int index);
18  std::vector<int> getVarNodes(){return d_varNodeIndicies;}
19  std::vector<double> getLq(){return d_Lq;}
20  std::vector<double> getLr(){return d_Lr;}
21 };
22 
23 #endif // CHECKNODE_H
std::vector< int > getVarNodes()
Definition: lib/fec/ldpc/checknode.h:18
checkNode(std::vector< int > indicies)
std::vector< double > getLr()
Definition: examples/LDPC/ldpc_2/ldpc_decoder/checknode.h:20
void updateLr()
void updateLq(double newLq)
Definition: examples/LDPC/ldpc_2/ldpc_decoder/checknode.h:6
std::vector< double > getLq()
Definition: lib/fec/ldpc/checknode.h:19