ok, second try

This commit is contained in:
Tiago Gomes
2012-05-23 14:56:01 +01:00
parent 3388917aa5
commit 6c77afb3ae
96 changed files with 17840 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
#ifndef HORUS_SOLVER_H
#define HORUS_SOLVER_H
#include <iomanip>
#include "Var.h"
#include "FactorGraph.h"
using namespace std;
class Solver
{
public:
Solver (const FactorGraph& factorGraph) : fg(factorGraph) { }
virtual ~Solver() { } // ensure that subclass destructor is called
virtual Params solveQuery (VarIds queryVids) = 0;
virtual void printSolverFlags (void) const = 0;
void printAnswer (const VarIds& vids);
void printAllPosterioris (void);
protected:
const FactorGraph& fg;
};
#endif // HORUS_SOLVER_H