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

#include <dec_map.hxx>

+ Inheritance diagram for opengm::external::libdai::DecMap< SUB_INFERENCE >:
+ Collaboration diagram for opengm::external::libdai::DecMap< SUB_INFERENCE >:

Classes

struct  Parameter
 

Public Types

typedef SUB_INFERENCE::AccumulationType AccumulationType
 
typedef SUB_INFERENCE::GraphicalModelType GraphicalModelType
 
typedef opengm::visitors::VerboseVisitor< DecMap< SUB_INFERENCE > > VerboseVisitorType
 
typedef opengm::visitors::TimingVisitor< DecMap< SUB_INFERENCE > > TimingVisitorType
 
typedef opengm::visitors::EmptyVisitor< DecMap< SUB_INFERENCE > > EmptyVisitorType
 
typedef SUB_INFERENCE::Parameter SubInferenceParameter
 
- Public Types inherited from opengm::Inference< SUB_INFERENCE::GraphicalModelType, SUB_INFERENCE::AccumulationType >
typedef SUB_INFERENCE::GraphicalModelType GraphicalModelType
 
typedef SUB_INFERENCE::AccumulationType 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
 
 DecMap (const GraphicalModelType &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< SUB_INFERENCE::GraphicalModelType, SUB_INFERENCE::AccumulationType >
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 SUB_INFERENCE>
class opengm::external::libdai::DecMap< SUB_INFERENCE >

Definition at line 17 of file dec_map.hxx.

Member Typedef Documentation

template<class SUB_INFERENCE >
typedef SUB_INFERENCE::AccumulationType opengm::external::libdai::DecMap< SUB_INFERENCE >::AccumulationType

Definition at line 22 of file dec_map.hxx.

template<class SUB_INFERENCE >
typedef opengm::visitors::EmptyVisitor< DecMap<SUB_INFERENCE> > opengm::external::libdai::DecMap< SUB_INFERENCE >::EmptyVisitorType

Definition at line 27 of file dec_map.hxx.

template<class SUB_INFERENCE >
typedef SUB_INFERENCE::GraphicalModelType opengm::external::libdai::DecMap< SUB_INFERENCE >::GraphicalModelType

Definition at line 23 of file dec_map.hxx.

template<class SUB_INFERENCE >
typedef SUB_INFERENCE::Parameter opengm::external::libdai::DecMap< SUB_INFERENCE >::SubInferenceParameter

Definition at line 29 of file dec_map.hxx.

template<class SUB_INFERENCE >
typedef opengm::visitors::TimingVisitor< DecMap<SUB_INFERENCE> > opengm::external::libdai::DecMap< SUB_INFERENCE >::TimingVisitorType

Definition at line 26 of file dec_map.hxx.

template<class SUB_INFERENCE >
typedef opengm::visitors::VerboseVisitor< DecMap<SUB_INFERENCE> > opengm::external::libdai::DecMap< SUB_INFERENCE >::VerboseVisitorType

Definition at line 25 of file dec_map.hxx.

Constructor & Destructor Documentation

template<class SUB_INFERENCE >
opengm::external::libdai::DecMap< SUB_INFERENCE >::DecMap ( const GraphicalModelType gm,
const Parameter  param = Parameter() 
)
inline

Definition at line 89 of file dec_map.hxx.

Member Function Documentation

template<class SUB_INFERENCE >
virtual InferenceTermination opengm::external::libdai::DecMap< SUB_INFERENCE >::arg ( std::vector< LabelType > &  ,
const size_t  = 1 
) const
inlinevirtual

output a solution

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

Reimplemented from opengm::Inference< SUB_INFERENCE::GraphicalModelType, SUB_INFERENCE::AccumulationType >.

Definition at line 114 of file dec_map.hxx.

template<class SUB_INFERENCE >
virtual InferenceTermination opengm::external::libdai::DecMap< SUB_INFERENCE >::factorMarginal ( const size_t  ,
IndependentFactorType  
) 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< SUB_INFERENCE::GraphicalModelType, SUB_INFERENCE::AccumulationType >.

Definition at line 120 of file dec_map.hxx.

template<class SUB_INFERENCE >
virtual const GraphicalModelType& opengm::external::libdai::DecMap< SUB_INFERENCE >::graphicalModel ( ) const
inlinevirtual
template<class SUB_INFERENCE >
virtual InferenceTermination opengm::external::libdai::DecMap< SUB_INFERENCE >::infer ( )
inlinevirtual
template<class SUB_INFERENCE >
template<class VISITOR >
InferenceTermination opengm::external::libdai::DecMap< SUB_INFERENCE >::infer ( VISITOR &  visitor)
inline

Definition at line 107 of file dec_map.hxx.

template<class SUB_INFERENCE >
virtual InferenceTermination opengm::external::libdai::DecMap< SUB_INFERENCE >::marginal ( const size_t  ,
IndependentFactorType  
) const
inlinevirtual

output a solution for a marginal for a specific variable

Parameters
variableIndexindex of the variable
[out]outthe marginal

Reimplemented from opengm::Inference< SUB_INFERENCE::GraphicalModelType, SUB_INFERENCE::AccumulationType >.

Definition at line 117 of file dec_map.hxx.

template<class SUB_INFERENCE >
std::string opengm::external::libdai::DecMap< SUB_INFERENCE >::name ( ) const
inlinevirtual
template<class SUB_INFERENCE >
virtual void opengm::external::libdai::DecMap< SUB_INFERENCE >::reset ( )
inlinevirtual

Definition at line 98 of file dec_map.hxx.

Member Data Documentation

template<class SUB_INFERENCE >
opengm::external::libdai::DecMap< SUB_INFERENCE >::OPENGM_GM_TYPE_TYPEDEFS

Definition at line 24 of file dec_map.hxx.