📄 logloopy.h
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -