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

#include <intersection_based_inf.hxx>

+ Inheritance diagram for opengm::IntersectionBasedInf< GM, PROPOSAL_GEN >:
+ Collaboration diagram for opengm::IntersectionBasedInf< 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< IntersectionBasedInf< GM, PROPOSAL_GEN > > VerboseVisitorType
 
typedef opengm::visitors::EmptyVisitor< IntersectionBasedInf< GM, PROPOSAL_GEN > > EmptyVisitorType
 
typedef opengm::visitors::TimingVisitor< IntersectionBasedInf< GM, PROPOSAL_GEN > > TimingVisitorType
 
typedef PermutableLabelFusionMove< GraphicalModelType, AccumulationTypeFusionMoverType
 
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

 IntersectionBasedInf (const GraphicalModelType &, const Parameter &=Parameter())
 
 ~IntersectionBasedInf ()
 
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...
 
std::vector< LabelType > & _getArgRef ()
 
void _setBestVal (const ValueType value)
 
- 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::IntersectionBasedInf< GM, PROPOSAL_GEN >

Definition at line 1014 of file intersection_based_inf.hxx.

Member Typedef Documentation

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

Definition at line 1022 of file intersection_based_inf.hxx.

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

Definition at line 1021 of file intersection_based_inf.hxx.

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

Definition at line 1027 of file intersection_based_inf.hxx.

template<class GM, class PROPOSAL_GEN>
typedef PermutableLabelFusionMove<GraphicalModelType, AccumulationType> opengm::IntersectionBasedInf< GM, PROPOSAL_GEN >::FusionMoverType

Definition at line 1030 of file intersection_based_inf.hxx.

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

Definition at line 1033 of file intersection_based_inf.hxx.

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

Definition at line 1023 of file intersection_based_inf.hxx.

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

Definition at line 1020 of file intersection_based_inf.hxx.

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

Definition at line 1032 of file intersection_based_inf.hxx.

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

Definition at line 1028 of file intersection_based_inf.hxx.

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

Definition at line 1026 of file intersection_based_inf.hxx.

Constructor & Destructor Documentation

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

Definition at line 1138 of file intersection_based_inf.hxx.

+ Here is the call graph for this function:

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

Definition at line 1220 of file intersection_based_inf.hxx.

Member Function Documentation

template<class GM, class PROPOSAL_GEN>
std::vector<LabelType>& opengm::IntersectionBasedInf< GM, PROPOSAL_GEN >::_getArgRef ( )
inline

Definition at line 1096 of file intersection_based_inf.hxx.

template<class GM, class PROPOSAL_GEN>
void opengm::IntersectionBasedInf< GM, PROPOSAL_GEN >::_setBestVal ( const ValueType  value)
inline

Definition at line 1100 of file intersection_based_inf.hxx.

+ Here is the call graph for this function:

template<class GM , class PROPOSAL_GEN >
InferenceTermination opengm::IntersectionBasedInf< 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 1513 of file intersection_based_inf.hxx.

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

Definition at line 1278 of file intersection_based_inf.hxx.

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

Definition at line 1238 of file intersection_based_inf.hxx.

template<class GM, class PROPOSAL_GEN>
void opengm::IntersectionBasedInf< 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 1246 of file intersection_based_inf.hxx.

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

return the solution (value)

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

Definition at line 1093 of file intersection_based_inf.hxx.

+ Here is the caller graph for this function:

Member Data Documentation

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

Definition at line 1024 of file intersection_based_inf.hxx.