variablenode.h
来自「根据LDPC码中码子的构造方法中的PEG算法」· C头文件 代码 · 共 49 行
H
49 行
/********************************************** * * variable node used in a factor graph * *******************************************/#ifndef VARIABLENODE#define VARIABLENODE#include "Node.h"class VariableNode : public Node {private: int size;public: // constructor (has an additional argument compared to the superclass) VariableNode(const char *name, int id, int numNeighbours, int size); // implementation of the inherited abstract method virtual void update(int port); // implementation of the inherited abstract method virtual void reset(void); // returns the size of the definition range of this variable int getSize(void); // inits variable node as first trellis state node in trellis section void initAsFirstTrellisState(double *outMessageValues); // issues a textual description of the current configuration of this node to standard output // (for debugging purposes) virtual void draw(void); // issues a textual description of the current configuration of this node to a file // (for debugging purposes) virtual void draw(FILE *file); // test method static void test(void);};#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?