drop Solver suffix and rename some files and classes
This commit is contained in:
46
packages/CLPBN/horus/VarElim.h
Normal file
46
packages/CLPBN/horus/VarElim.h
Normal file
@@ -0,0 +1,46 @@
|
||||
#ifndef HORUS_VARELIM_H
|
||||
#define HORUS_VARELIM_H
|
||||
|
||||
#include "unordered_map"
|
||||
|
||||
#include "Solver.h"
|
||||
#include "FactorGraph.h"
|
||||
#include "Horus.h"
|
||||
|
||||
|
||||
using namespace std;
|
||||
|
||||
|
||||
class VarElim : public Solver
|
||||
{
|
||||
public:
|
||||
VarElim (const FactorGraph& fg) : Solver (fg) { }
|
||||
|
||||
~VarElim (void);
|
||||
|
||||
Params solveQuery (VarIds);
|
||||
|
||||
void printSolverFlags (void) const;
|
||||
|
||||
private:
|
||||
void createFactorList (void);
|
||||
|
||||
void absorveEvidence (void);
|
||||
|
||||
void findEliminationOrder (const VarIds&);
|
||||
|
||||
void processFactorList (const VarIds&);
|
||||
|
||||
void eliminate (VarId);
|
||||
|
||||
void printActiveFactors (void);
|
||||
|
||||
Factors factorList_;
|
||||
VarIds elimOrder_;
|
||||
unsigned largestFactorSize_;
|
||||
unsigned totalFactorSize_;
|
||||
unordered_map<VarId, vector<size_t>> varFactors_;
|
||||
};
|
||||
|
||||
#endif // HORUS_VARELIM_H
|
||||
|
Reference in New Issue
Block a user