logpairsgbp.h

来自「The package includes 3 Matlab-interfaces」· C头文件 代码 · 共 38 行

H
38
字号
#include "PairsGBP.h"#include <math.h>#ifndef __LOG_PAIRS_GBP__#define __LOG_PAIRS_GBP__class LogPairsGBP : public PairsGBP {  /**     This class makes inference using the simple form of GBP for pairs-regions     in the log-space        Part of the c_inference package     @version August 2006     @author Talya Meltzer  */   public: public:  // ctor  LogPairsGBP(MRF const* mrf, SumOrMax m = MAX, Strategy s = SEQUENTIAL,	      int maxIter = 2000, double* doubleCount = 0, double*** initMsg = 0,	      bool logBels = false, double th = log(pow(10.,-8))) :    PairsGBP(mrf,m,s,maxIter,doubleCount,initMsg,th) {lpgbp_logBels = logBels;}    virtual ~LogPairsGBP() {} // dtor    virtual double** inference(int* converged);    virtual double**** calcPairBeliefs(); protected:    bool lpgbp_logBels; // return the beliefs in the -log-space};#endif

⌨️ 快捷键说明

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