OpenGM  2.3.x
Discrete Graphical Model Library
Classes | Public Types | Public Member Functions | Public Attributes | List of all members
opengm::external::libdai::TreeExpectationPropagation< GM, ACC > Class Template Reference

Tree Expectation Propagation :
[?]. More...

#include <tree_expectation_propagation.hxx>

+ Inheritance diagram for opengm::external::libdai::TreeExpectationPropagation< GM, ACC >:
+ Collaboration diagram for opengm::external::libdai::TreeExpectationPropagation< GM, ACC >:

Classes

struct  Parameter
 

Public Types

enum  TreeEpType { ORG, ALT }
 
typedef ACC AccumulationType
 
typedef GM GraphicalModelType
 
typedef opengm::visitors::VerboseVisitor< TreeExpectationPropagation< GM, ACC > > VerboseVisitorType
 
typedef opengm::visitors::TimingVisitor< TreeExpectationPropagation< GM, ACC > > TimingVisitorType
 
typedef opengm::visitors::EmptyVisitor< TreeExpectationPropagation< GM, ACC > > EmptyVisitorType
 
- Public Types inherited from opengm::Inference< GM, ACC >
typedef GM GraphicalModelType
 
typedef ACC AccumulationType
 
typedef GraphicalModelType::LabelType LabelType
 
typedef GraphicalModelType::IndexType IndexType
 
typedef GraphicalModelType::ValueType ValueType
 
typedef GraphicalModelType::OperatorType OperatorType
 
typedef GraphicalModelType::FactorType FactorType
 
typedef GraphicalModelType::IndependentFactorType IndependentFactorType
 
typedef GraphicalModelType::FunctionIdentifier FunctionIdentifier
 

Public Member Functions

std::string name () const
 
 TreeExpectationPropagation (const GM &gm, const Parameter param=Parameter())
 
virtual const GraphicalModelTypegraphicalModel () const
 
virtual void reset ()
 
virtual InferenceTermination infer ()
 
template<class VISITOR >
InferenceTermination infer (VISITOR &visitor)
 
virtual InferenceTermination arg (std::vector< LabelType > &v, const size_t argnr=1) const
 output a solution More...
 
virtual InferenceTermination marginal (const size_t v, IndependentFactorType &m) const
 output a solution for a marginal for a specific variable More...
 
virtual InferenceTermination factorMarginal (const size_t f, IndependentFactorType &m) const
 output a solution for a marginal for all variables connected to a factor More...
 
- Public Member Functions inherited from opengm::Inference< GM, ACC >
virtual ~Inference ()
 
virtual void setStartingPoint (typename std::vector< LabelType >::const_iterator)
 set initial labeling More...
 
virtual InferenceTermination args (std::vector< std::vector< LabelType > > &) const
 
virtual ValueType bound () const
 return a bound on the solution More...
 
virtual ValueType value () const
 return the solution (value) More...
 
InferenceTermination constrainedOptimum (std::vector< IndexType > &, std::vector< LabelType > &, std::vector< LabelType > &) const
 
InferenceTermination modeFromMarginal (std::vector< LabelType > &) const
 
InferenceTermination modeFromFactorMarginal (std::vector< LabelType > &) const
 

Public Attributes

 OPENGM_GM_TYPE_TYPEDEFS
 

Detailed Description

template<class GM, class ACC>
class opengm::external::libdai::TreeExpectationPropagation< GM, ACC >

Tree Expectation Propagation :
[?].

Tree Expectation Propagation :

Definition at line 22 of file tree_expectation_propagation.hxx.

Member Typedef Documentation

template<class GM , class ACC >
typedef ACC opengm::external::libdai::TreeExpectationPropagation< GM, ACC >::AccumulationType

Definition at line 24 of file tree_expectation_propagation.hxx.

Definition at line 29 of file tree_expectation_propagation.hxx.

template<class GM , class ACC >
typedef GM opengm::external::libdai::TreeExpectationPropagation< GM, ACC >::GraphicalModelType

Definition at line 25 of file tree_expectation_propagation.hxx.

Definition at line 28 of file tree_expectation_propagation.hxx.

Definition at line 27 of file tree_expectation_propagation.hxx.

Constructor & Destructor Documentation

template<class GM , class ACC >
opengm::external::libdai::TreeExpectationPropagation< GM, ACC >::TreeExpectationPropagation ( const GM &  gm,
const Parameter  param = Parameter() 
)
inline

Definition at line 73 of file tree_expectation_propagation.hxx.

Member Function Documentation

template<class GM , class ACC >
virtual InferenceTermination opengm::external::libdai::TreeExpectationPropagation< GM, ACC >::arg ( std::vector< LabelType > &  arg,
const size_t  argIndex = 1 
) const
inlinevirtual

output a solution

Parameters
[out]arglabeling
argIndexsolution index (1=best, 2=second best, etc.)

Reimplemented from opengm::Inference< GM, ACC >.

Definition at line 98 of file tree_expectation_propagation.hxx.

template<class GM , class ACC >
virtual InferenceTermination opengm::external::libdai::TreeExpectationPropagation< GM, ACC >::factorMarginal ( const size_t  factorIndex,
IndependentFactorType out 
) const
inlinevirtual

output a solution for a marginal for all variables connected to a factor

Parameters
factorIndexindex of the factor
[out]outthe marginal

Reimplemented from opengm::Inference< GM, ACC >.

Definition at line 104 of file tree_expectation_propagation.hxx.

template<class GM , class ACC >
virtual const GraphicalModelType& opengm::external::libdai::TreeExpectationPropagation< GM, ACC >::graphicalModel ( ) const
inlinevirtual

Implements opengm::Inference< GM, ACC >.

Definition at line 78 of file tree_expectation_propagation.hxx.

template<class GM , class ACC >
virtual InferenceTermination opengm::external::libdai::TreeExpectationPropagation< GM, ACC >::infer ( )
inlinevirtual

Implements opengm::Inference< GM, ACC >.

Definition at line 86 of file tree_expectation_propagation.hxx.

template<class GM , class ACC >
template<class VISITOR >
InferenceTermination opengm::external::libdai::TreeExpectationPropagation< GM, ACC >::infer ( VISITOR &  visitor)
inline

Definition at line 91 of file tree_expectation_propagation.hxx.

template<class GM , class ACC >
virtual InferenceTermination opengm::external::libdai::TreeExpectationPropagation< GM, ACC >::marginal ( const size_t  variableIndex,
IndependentFactorType out 
) const
inlinevirtual

output a solution for a marginal for a specific variable

Parameters
variableIndexindex of the variable
[out]outthe marginal

Reimplemented from opengm::Inference< GM, ACC >.

Definition at line 101 of file tree_expectation_propagation.hxx.

template<class GM , class ACC >
std::string opengm::external::libdai::TreeExpectationPropagation< GM, ACC >::name ( ) const
inlinevirtual

Implements opengm::Inference< GM, ACC >.

Definition at line 35 of file tree_expectation_propagation.hxx.

template<class GM , class ACC >
virtual void opengm::external::libdai::TreeExpectationPropagation< GM, ACC >::reset ( )
inlinevirtual

Definition at line 82 of file tree_expectation_propagation.hxx.

Member Data Documentation

template<class GM , class ACC >
opengm::external::libdai::TreeExpectationPropagation< GM, ACC >::OPENGM_GM_TYPE_TYPEDEFS

Definition at line 26 of file tree_expectation_propagation.hxx.