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/Horus.h

77 lines
1.5 KiB
C
Raw Normal View History

2012-05-23 14:56:01 +01:00
#ifndef HORUS_HORUS_H
#define HORUS_HORUS_H
#define DISALLOW_COPY_AND_ASSIGN(TypeName) \
TypeName(const TypeName&); \
void operator=(const TypeName&)
2012-12-27 22:25:45 +00:00
#define DISALLOW_COPY(TypeName) \
TypeName(const TypeName&)
#define DISALLOW_ASSIGN(TypeName) \
void operator=(const TypeName&)
#include <vector>
2012-12-28 15:40:32 +00:00
#include <string>
2012-05-23 14:56:01 +01:00
class Var;
class Factor;
class VarNode;
class FacNode;
2012-12-28 15:40:32 +00:00
typedef std::vector<double> Params;
typedef unsigned VarId;
typedef std::vector<VarId> VarIds;
typedef std::vector<Var*> Vars;
typedef std::vector<VarNode*> VarNodes;
typedef std::vector<FacNode*> FacNodes;
typedef std::vector<Factor*> Factors;
typedef std::vector<std::string> States;
typedef std::vector<unsigned> Ranges;
typedef unsigned long long ullong;
2012-05-23 14:56:01 +01:00
2012-11-14 21:55:51 +00:00
enum LiftedSolverType
2012-05-23 14:56:01 +01:00
{
LVE, // generalized counting first-order variable elimination (GC-FOVE)
LBP, // lifted first-order belief propagation
LKC // lifted first-order knowledge compilation
};
2012-11-14 21:55:51 +00:00
enum GroundSolverType
{
VE, // variable elimination
BP, // belief propagation
CBP // counting belief propagation
2012-05-23 14:56:01 +01:00
};
namespace Globals {
extern bool logDomain;
// level of debug information
extern unsigned verbosity;
2012-11-14 21:55:51 +00:00
extern LiftedSolverType liftedSolver;
extern GroundSolverType groundSolver;
2012-05-23 14:56:01 +01:00
};
namespace Constants {
// show message calculation for belief propagation
const bool SHOW_BP_CALCS = false;
const int NO_EVIDENCE = -1;
// number of digits to show when printing a parameter
const unsigned PRECISION = 6;
};
#endif // HORUS_HORUS_H