This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
yap-6.3/packages/CLPBN/horus/LiftedBpSolver.h

35 lines
623 B
C
Raw Normal View History

2012-05-30 19:23:41 +01:00
#ifndef HORUS_LIFTEDBPSOLVER_H
#define HORUS_LIFTEDBPSOLVER_H
#include "ParfactorList.h"
class FactorGraph;
class WeightedBpSolver;
2012-05-30 19:23:41 +01:00
class LiftedBpSolver
{
public:
LiftedBpSolver (const ParfactorList& pfList);
2012-05-30 19:23:41 +01:00
2012-05-31 23:06:53 +01:00
Params solveQuery (const Grounds&);
2012-05-30 19:23:41 +01:00
void printSolverFlags (void) const;
private:
void refineParfactors (void);
bool iterate (void);
vector<PrvGroup> getQueryGroups (const Grounds&);
FactorGraph* getFactorGraph (void);
vector<vector<unsigned>> getWeights (void) const;
ParfactorList pfList_;
WeightedBpSolver* solver_;
2012-05-30 19:23:41 +01:00
};
#endif // HORUS_LIFTEDBPSOLVER_H