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

📄 inferencealgorithm.h

📁 The package includes 3 Matlab-interfaces to the c-code: 1. inference.m An interface to the full
💻 H
字号:
#include "definitions.h"#include "MRF.h"#ifndef __INFERENCE_ALGORITHM__#define __INFERENCE_ALGORITHM__class InferenceAlgorithm {    /**     This class defines the interface for making inference        Part of the c_inference package     @version November 2004     @author Talya Meltzer  */   public:  // ctor  InferenceAlgorithm(MRF const* mrf);  virtual ~InferenceAlgorithm(); // dtor  virtual double** inference(int* converged) = 0;  void initBeliefs();    void getMaximalStates(vector<int>& max_states, int i, double epsilon) const;   protected:    MRF const* ia_mrf; // holds all data about the variables: cardinality, neighbours, potentials    double** ia_beliefs; // will contain the probabilities calculated for  //                       xi=0 and xi=1 (for i=0,..,N-1)  void freeBeliefs();};#endif

⌨️ 快捷键说明

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