libDAI
Classes | Namespaces | Typedefs | Functions
daialg.h File Reference

Defines the general interface for inference methods in libDAI (classes InfAlg, DaiAlg<>, DaiAlgFG and DaiAlgRG). More...

#include <string>
#include <iostream>
#include <vector>
#include <dai/factorgraph.h>
#include <dai/regiongraph.h>
#include <dai/cobwebgraph.h>
#include <dai/properties.h>

Go to the source code of this file.

Classes

class  dai::InfAlg
 InfAlg is an abstract base class, defining the common interface of all inference algorithms in libDAI. More...
 
class  dai::DAIAlg< GRM >
 Combines the abstract base class InfAlg with a graphical model (e.g., a FactorGraph or RegionGraph). More...
 

Namespaces

 dai
 Namespace for libDAI.
 

Typedefs

typedef DAIAlg< FactorGraph > dai::DAIAlgFG
 Base class for inference algorithms that operate on a FactorGraph. More...
 
typedef DAIAlg< RegionGraph > dai::DAIAlgRG
 Base class for inference algorithms that operate on a RegionGraph. More...
 
typedef DAIAlg< CobwebGraph > dai::DAIAlgCG
 Base class for GLC that operates on CobwebGraph. More...
 

Functions

Factor dai::calcMarginal (const InfAlg &obj, const VarSet &vs, bool reInit)
 Calculates the marginal probability distribution for vs using inference algorithm obj. More...
 
vector< Factor > dai::calcPairBeliefs (const InfAlg &obj, const VarSet &vs, bool reInit, bool accurate=false)
 Calculates beliefs for all pairs of variables in vs using inference algorithm obj. More...
 
std::vector< size_t > dai::findMaximum (const InfAlg &obj)
 Calculates the joint state of all variables that has maximum probability, according to the inference algorithm obj. More...
 

Detailed Description

Defines the general interface for inference methods in libDAI (classes InfAlg, DaiAlg<>, DaiAlgFG and DaiAlgRG).