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

#include <fusion_based_inf.hxx>

+ Inheritance diagram for opengm::FusionBasedInf< GM, PROPOSAL_GEN >:
+ Collaboration diagram for opengm::FusionBasedInf< GM, PROPOSAL_GEN >:

Classes

class  Parameter
 

Public Types

typedef PROPOSAL_GEN ProposalGen
 
typedef ProposalGen::AccumulationType AccumulationType
 
typedef AccumulationType ACC
 
typedef GM GraphicalModelType
 
typedef opengm::visitors::VerboseVisitor< FusionBasedInf< GM, PROPOSAL_GEN > > VerboseVisitorType
 
typedef opengm::visitors::EmptyVisitor< FusionBasedInf< GM, PROPOSAL_GEN > > EmptyVisitorType
 
typedef opengm::visitors::TimingVisitor< FusionBasedInf< GM, PROPOSAL_GEN > > TimingVisitorType
 
typedef HlFusionMover< GraphicalModelType, AccumulationTypeFusionMoverType
 
typedef HlFusionMover< GraphicalModelType, AccumulationTypeFusionMover
 
typedef ProposalGen::Parameter ProposalParameter
 
typedef FusionMoverType::Parameter FusionParameter
 
- Public Types inherited from opengm::Inference< GM, PROPOSAL_GEN::AccumulationType >
typedef GM GraphicalModelType
 
typedef PROPOSAL_GEN::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

 FusionBasedInf (const GraphicalModelType &, const Parameter &=Parameter())
 
 ~FusionBasedInf ()
 
std::string name () const
 
const GraphicalModelTypegraphicalModel () const
 
InferenceTermination infer ()
 
void reset ()
 
template<class VisitorType >
InferenceTermination infer (VisitorType &)
 
void setStartingPoint (typename std::vector< LabelType >::const_iterator)
 set initial labeling More...
 
virtual InferenceTermination arg (std::vector< LabelType > &, const size_t=1) const
 output a solution More...
 
virtual ValueType value () const
 return the solution (value) More...
 
- Public Member Functions inherited from opengm::Inference< GM, PROPOSAL_GEN::AccumulationType >
virtual ~Inference ()
 
virtual InferenceTermination args (std::vector< std::vector< LabelType > > &) const
 
virtual InferenceTermination marginal (const size_t, IndependentFactorType &) const
 output a solution for a marginal for a specific variable More...
 
virtual InferenceTermination factorMarginal (const size_t, IndependentFactorType &) const
 output a solution for a marginal for all variables connected to a factor More...
 
virtual ValueType bound () const
 return a bound on the solution 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 PROPOSAL_GEN>
class opengm::FusionBasedInf< GM, PROPOSAL_GEN >

Definition at line 929 of file fusion_based_inf.hxx.

Member Typedef Documentation

template<class GM, class PROPOSAL_GEN>
typedef AccumulationType opengm::FusionBasedInf< GM, PROPOSAL_GEN >::ACC

Definition at line 934 of file fusion_based_inf.hxx.

template<class GM, class PROPOSAL_GEN>
typedef ProposalGen::AccumulationType opengm::FusionBasedInf< GM, PROPOSAL_GEN >::AccumulationType

Definition at line 933 of file fusion_based_inf.hxx.

template<class GM, class PROPOSAL_GEN>
typedef opengm::visitors::EmptyVisitor<FusionBasedInf<GM, PROPOSAL_GEN> > opengm::FusionBasedInf< GM, PROPOSAL_GEN >::EmptyVisitorType

Definition at line 939 of file fusion_based_inf.hxx.

template<class GM, class PROPOSAL_GEN>
typedef HlFusionMover<GraphicalModelType, AccumulationType> opengm::FusionBasedInf< GM, PROPOSAL_GEN >::FusionMover

Definition at line 945 of file fusion_based_inf.hxx.

template<class GM, class PROPOSAL_GEN>
typedef HlFusionMover<GraphicalModelType, AccumulationType> opengm::FusionBasedInf< GM, PROPOSAL_GEN >::FusionMoverType

Definition at line 944 of file fusion_based_inf.hxx.

template<class GM, class PROPOSAL_GEN>
typedef FusionMoverType::Parameter opengm::FusionBasedInf< GM, PROPOSAL_GEN >::FusionParameter

Definition at line 948 of file fusion_based_inf.hxx.

template<class GM, class PROPOSAL_GEN>
typedef GM opengm::FusionBasedInf< GM, PROPOSAL_GEN >::GraphicalModelType

Definition at line 935 of file fusion_based_inf.hxx.

template<class GM, class PROPOSAL_GEN>
typedef PROPOSAL_GEN opengm::FusionBasedInf< GM, PROPOSAL_GEN >::ProposalGen

Definition at line 932 of file fusion_based_inf.hxx.

template<class GM, class PROPOSAL_GEN>
typedef ProposalGen::Parameter opengm::FusionBasedInf< GM, PROPOSAL_GEN >::ProposalParameter

Definition at line 947 of file fusion_based_inf.hxx.

template<class GM, class PROPOSAL_GEN>
typedef opengm::visitors::TimingVisitor<FusionBasedInf<GM, PROPOSAL_GEN> > opengm::FusionBasedInf< GM, PROPOSAL_GEN >::TimingVisitorType

Definition at line 940 of file fusion_based_inf.hxx.

template<class GM, class PROPOSAL_GEN>
typedef opengm::visitors::VerboseVisitor<FusionBasedInf<GM, PROPOSAL_GEN> > opengm::FusionBasedInf< GM, PROPOSAL_GEN >::VerboseVisitorType

Definition at line 938 of file fusion_based_inf.hxx.

Constructor & Destructor Documentation

template<class GM , class PROPOSAL_GEN >
opengm::FusionBasedInf< GM, PROPOSAL_GEN >::FusionBasedInf ( const GraphicalModelType gm,
const Parameter parameter = Parameter() 
)

Definition at line 1007 of file fusion_based_inf.hxx.

template<class GM , class PROPOSAL_GEN >
opengm::FusionBasedInf< GM, PROPOSAL_GEN >::~FusionBasedInf ( )

Definition at line 1041 of file fusion_based_inf.hxx.

Member Function Documentation

template<class GM , class PROPOSAL_GEN >
InferenceTermination opengm::FusionBasedInf< GM, PROPOSAL_GEN >::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< GM, PROPOSAL_GEN::AccumulationType >.

Definition at line 1154 of file fusion_based_inf.hxx.

template<class GM , class PROPOSAL_GEN >
const FusionBasedInf< GM, PROPOSAL_GEN >::GraphicalModelType & opengm::FusionBasedInf< GM, PROPOSAL_GEN >::graphicalModel ( ) const
inlinevirtual
template<class GM , class PROPOSAL_GEN >
InferenceTermination opengm::FusionBasedInf< GM, PROPOSAL_GEN >::infer ( )
inlinevirtual
template<class GM , class PROPOSAL_GEN >
template<class VisitorType >
InferenceTermination opengm::FusionBasedInf< GM, PROPOSAL_GEN >::infer ( VisitorType &  visitor)

Definition at line 1091 of file fusion_based_inf.hxx.

template<class GM , class PROPOSAL_GEN >
std::string opengm::FusionBasedInf< GM, PROPOSAL_GEN >::name ( ) const
inlinevirtual
template<class GM , class PROPOSAL_GEN >
void opengm::FusionBasedInf< GM, PROPOSAL_GEN >::reset ( )
inline

Definition at line 1049 of file fusion_based_inf.hxx.

template<class GM, class PROPOSAL_GEN>
void opengm::FusionBasedInf< GM, PROPOSAL_GEN >::setStartingPoint ( typename std::vector< LabelType >::const_iterator  )
inlinevirtual

set initial labeling

Parameters
beginiterator to the beginning of a sequence of labels

Reimplemented from opengm::Inference< GM, PROPOSAL_GEN::AccumulationType >.

Definition at line 1057 of file fusion_based_inf.hxx.

template<class GM, class PROPOSAL_GEN>
virtual ValueType opengm::FusionBasedInf< GM, PROPOSAL_GEN >::value ( ) const
inlinevirtual

return the solution (value)

Reimplemented from opengm::Inference< GM, PROPOSAL_GEN::AccumulationType >.

Definition at line 987 of file fusion_based_inf.hxx.

Member Data Documentation

template<class GM, class PROPOSAL_GEN>
opengm::FusionBasedInf< GM, PROPOSAL_GEN >::OPENGM_GM_TYPE_TYPEDEFS

Definition at line 936 of file fusion_based_inf.hxx.