⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 functionnode.h

📁 根据LDPC码中码子的构造方法中的PEG算法
💻 H
字号:
/********************************************** * * function node used in a factor graph * *******************************************/#ifndef FUNCTIONNODEH#define FUNCTIONNODEH#include "Node.h"#include "LocalFunction.h"class FunctionNode : public Node {public:  // constructor (has an additional argument compared to the superclass)  FunctionNode(const char *name, int id, int numNeighbours, LocalFunction *localFunction);    // implementation of the inherited abstract method  virtual  void update(int port);  virtual void reset(void);  // issues a textual description of the current configuration of this node  // (for debugging purposes)  void draw(void);  // issues a textual description of the current configuration of this node into a file  // (for debugging purposes)  void draw(FILE *file);protected:  LocalFunction *localFunction;private:  void summation(int neighbourIndex, int *tempConfiguration, int fixVariableIndex, int fixVariableValue, double& sum);};#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -