logloopy.h

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

H
38
字号
#include "Loopy.h"#ifndef __LOG_LOOPY__#define __LOG_LOOPY__class LogLoopy : public Loopy {  /**     This class makes inference using Loopy Belief Propagation algorithm     in log-space        Part of the c_inference package     @version August 2005     @author Talya Meltzer  */   public:  // ctor  LogLoopy(MRF const* mrf, SumOrMax m = MAX, Strategy s = SEQUENTIAL,	   int maxIter = 2000, double** trwRho = 0, double*** initMsg = 0,	   bool logBels = false, double th = log(pow(10.,-8))) :    Loopy(mrf,m,s,maxIter,trwRho,initMsg,th) {ll_logBels = logBels;}    virtual ~LogLoopy() {} // dtor    virtual double** inference(int* converged);    virtual double** inferenceTRBP(int* converged);    virtual double**** calcPairBeliefs();    virtual double**** calcPairBeliefsTRBP(); protected:    bool ll_logBels; // return the beliefs in the -log-space  };#endif

⌨️ 快捷键说明

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