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
 
struct  RebindGm
 
struct  RebindGmAndAcc
 

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)
 
virtual InferenceTermination arg (std::vector< LabelType > &, const size_t=1) const
 
virtual ValueType value () const
 return the solution (value) More...
 
- Public Member Functions inherited from opengm::Inference< GM, PROPOSAL_GEN::AccumulationType >
virtual ~Inference ()
 
virtual 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 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 927 of file fusion_based_inf.hxx.

Member Typedef Documentation

§ ACC

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

Definition at line 932 of file fusion_based_inf.hxx.

§ AccumulationType

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

Definition at line 931 of file fusion_based_inf.hxx.

§ EmptyVisitorType

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

Definition at line 937 of file fusion_based_inf.hxx.

§ FusionMover

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

Definition at line 943 of file fusion_based_inf.hxx.

§ FusionMoverType

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

Definition at line 942 of file fusion_based_inf.hxx.

§ FusionParameter

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

Definition at line 946 of file fusion_based_inf.hxx.

§ GraphicalModelType

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

Definition at line 933 of file fusion_based_inf.hxx.

§ ProposalGen

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

Definition at line 930 of file fusion_based_inf.hxx.

§ ProposalParameter

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

Definition at line 945 of file fusion_based_inf.hxx.

§ TimingVisitorType

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

Definition at line 938 of file fusion_based_inf.hxx.

§ VerboseVisitorType

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

Definition at line 936 of file fusion_based_inf.hxx.

Constructor & Destructor Documentation

§ FusionBasedInf()

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

Definition at line 1026 of file fusion_based_inf.hxx.

+ Here is the caller graph for this function:

§ ~FusionBasedInf()

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

Definition at line 1060 of file fusion_based_inf.hxx.

Member Function Documentation

§ arg()

template<class GM , class PROPOSAL_GEN >
InferenceTermination opengm::FusionBasedInf< GM, PROPOSAL_GEN >::arg ( std::vector< LabelType > &  x,
const size_t  N = 1 
) const
inlinevirtual

Definition at line 1173 of file fusion_based_inf.hxx.

+ Here is the caller graph for this function:

§ graphicalModel()

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

§ infer() [1/2]

template<class GM , class PROPOSAL_GEN >
InferenceTermination opengm::FusionBasedInf< GM, PROPOSAL_GEN >::infer ( )
inlinevirtual

Implements opengm::Inference< GM, PROPOSAL_GEN::AccumulationType >.

Definition at line 1100 of file fusion_based_inf.hxx.

+ Here is the call graph for this function:

§ infer() [2/2]

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

Definition at line 1110 of file fusion_based_inf.hxx.

+ Here is the call graph for this function:

§ name()

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

§ reset()

template<class GM , class PROPOSAL_GEN >
void opengm::FusionBasedInf< GM, PROPOSAL_GEN >::reset ( )
inline

Definition at line 1068 of file fusion_based_inf.hxx.

+ Here is the call graph for this function:

§ setStartingPoint()

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

Definition at line 1076 of file fusion_based_inf.hxx.

+ Here is the caller graph for this function:

§ value()

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 1006 of file fusion_based_inf.hxx.

+ Here is the call graph for this function:

Member Data Documentation

§ OPENGM_GM_TYPE_TYPEDEFS

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

Definition at line 934 of file fusion_based_inf.hxx.