Direct Graphical Models  v.1.7.0
InferTree.h
1 // Tree and DAG exact inference class interface
2 // Written by Sergey G. Kosov in 2015 for Project X
3 #pragma once
4 
5 #include "MessagePassing.h"
6 
7 namespace DirectGraphicalModels
8 {
9  // ==================== Tree Infer Class ==================
16  class CInferTree : public CMessagePassing
17  {
18  public:
23  DllExport CInferTree(CGraphPairwise & graph) : CMessagePassing(graph) {}
24  DllExport virtual ~CInferTree(void) {}
25 
26 
27  protected:
33  DllExport virtual void calculateMessages(unsigned int nIt);
34  };
35 }
CInferTree(CGraphPairwise &graph)
Constructor.
Definition: InferTree.h:23
Abstract base class for message passing inference algorithmes.
virtual void calculateMessages(unsigned int nIt)
Calculates messages for exact inference in a tree graph.
Definition: InferTree.cpp:6
Inference for tree graphs (undirected graphs without loops)
Definition: InferTree.h:16