new version of belief propagation solver.

This commit is contained in:
Vitor Santos Costa
2011-07-22 21:33:30 +01:00
parent a16a7d5b1c
commit 69e5fed10f
41 changed files with 3804 additions and 2238 deletions

View File

@@ -1,5 +1,5 @@
#ifndef BP_GRAPHICALMODEL_H
#define BP_GRAPHICALMODEL_H
#ifndef BP_GRAPHICAL_MODEL_H
#define BP_GRAPHICAL_MODEL_H
#include "Variable.h"
#include "Shared.h"
@@ -9,9 +9,10 @@ using namespace std;
class GraphicalModel
{
public:
virtual VarSet getVariables (void) const = 0;
private:
virtual ~GraphicalModel (void) {};
virtual Variable* getVariable (Vid) const = 0;
virtual VarSet getVariables (void) const = 0;
virtual void printGraphicalModel (void) const = 0;
};
#endif
#endif // BP_GRAPHICAL_MODEL_H