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

📄 meanfield.h

📁 The package includes 3 Matlab-interfaces to the c-code: 1. inference.m An interface to the full
💻 H
字号:
#include "InferenceAlgorithm.h"#include <math.h>#ifndef __MEAN_FIELD__#define __MEAN_FIELD__class MeanField : public InferenceAlgorithm {  /**     This class makes inference using mean-field approximation        Part of the c_inference package     @version November 2004     @author Talya Meltzer  */   public:  // ctor  MeanField(MRF const* mrf, int maxIter = 2000, double th = pow(10.,-8)) :    InferenceAlgorithm(mrf), mf_maxIter(maxIter), mf_th(th) {}    virtual ~MeanField() {} // dtor  virtual double** inference(int* converged);   protected:    int mf_maxIter; // maximum number of iterations in inference  double mf_th; // threshold for convergence  };#endif

⌨️ 快捷键说明

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