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

📄 loggbp.h

📁 The package includes 3 Matlab-interfaces to the c-code: 1. inference.m An interface to the full
💻 H
字号:
#include "GBP.h"#include <vector>#include <math.h>#ifndef __LOG_GENERALIZED_BP__#define __LOG_GENERALIZED_BP__class LogGBP : public GBP {  /**     This class makes inference using Jonathan Yedidia's GBP algorithm in log-space        Part of the c_inference package     @version November 2004     @author Talya Meltzer  */ public:  // ctor  LogGBP(MRF const* reg_mrf, int*** assignInd, double* bethe,      SumOrMax m = MAX, double alpha = 0.5, int maxIter = 2000,      double*** initMsg = 0, bool logBels = false, double th = pow(10.,-8)) :    GBP(reg_mrf, assignInd, bethe, m, alpha, maxIter, initMsg, th)    {      lgbp_logBels = logBels;      initMessages(initMsg);      initBeliefs();    }    virtual ~LogGBP() {} // dtor    virtual double** inference(int* converged); protected:    // data members    bool lgbp_logBels;  // return the beliefs in the -log-space      // protected methods      virtual void initMessages(double*** initMsg);    virtual void initBeliefs();    virtual void calcIncomingMessages(double* incoming_i, int i, int j);      void minNormalize(double* dataVec, int Vj);    void normalizeBeliefs();};#endif

⌨️ 快捷键说明

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