Direct Graphical Models  v.1.7.0
InferExact.h
1 // Exact inference class interface
2 // Written by Sergey G. Kosov in 2015 for Project X
3 #pragma once
4 
5 #include "Infer.h"
6 #include "DecodeExact.h"
7 
8 namespace DirectGraphicalModels
9 {
10  // ================================ Exact Infer Class ===============================
17  class CInferExact : public CInfer, private CDecodeExact
18  {
19  public:
24  DllExport CInferExact(IGraphPairwise &graph) : CInfer(graph), CDecodeExact(graph) {}
25  DllExport virtual ~CInferExact(void) = default;
26 
41  DllExport virtual void infer(unsigned int nIt = 0);
42 
43  using CInfer::decode;
44  };
45 }
virtual ~CInferExact(void)=default
Exact decoding class.
Definition: DecodeExact.h:17
Exact inference class.
Definition: InferExact.h:17
vec_byte_t decode(unsigned int nIt=0, Mat &lossMatrix=EmptyMat)
Approximate decoding.
Definition: Infer.cpp:7
CInferExact(IGraphPairwise &graph)
Constructor.
Definition: InferExact.h:24
Base abstract class for random model inference.
Definition: Infer.h:19
Interface class for graphical models.
virtual void infer(unsigned int nIt=0)
Exact inference.
Definition: InferExact.cpp:7