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

HQPBO Algorithm

. More...

#include <hqpbo.hxx>

+ Inheritance diagram for opengm::HQPBO< GM, ACC >:
+ Collaboration diagram for opengm::HQPBO< GM, ACC >:

Classes

struct  Parameter
 

Public Types

typedef GM GraphicalModelType
 
typedef ACC AccumulationType
 
typedef visitors::VerboseVisitor< HQPBO< GM, ACC > > VerboseVisitorType
 
typedef visitors::TimingVisitor< HQPBO< GM, ACC > > TimingVisitorType
 
typedef visitors::EmptyVisitor< HQPBO< GM, ACC > > EmptyVisitorType
 
- Public Types inherited from opengm::Inference< GM, opengm::Minimizer >
typedef GM GraphicalModelType
 
typedef opengm::Minimizer 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

 HQPBO (const GraphicalModelType &, Parameter=Parameter())
 
std::string name () const
 
const GraphicalModelTypegraphicalModel () const
 
InferenceTermination infer ()
 
template<class VISITOR >
InferenceTermination infer (VISITOR &)
 
InferenceTermination arg (std::vector< LabelType > &, const size_t &=1) const
 
void setStartingPoint (typename std::vector< LabelType >::const_iterator begin)
 set initial labeling More...
 
- Public Member Functions inherited from opengm::Inference< GM, opengm::Minimizer >
virtual ~Inference ()
 
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...
 
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::HQPBO< GM, ACC >

HQPBO Algorithm

.

Definition at line 22 of file hqpbo.hxx.

Member Typedef Documentation

template<class GM, class ACC>
typedef ACC opengm::HQPBO< GM, ACC >::AccumulationType

Definition at line 26 of file hqpbo.hxx.

template<class GM, class ACC>
typedef visitors::EmptyVisitor<HQPBO<GM,ACC> > opengm::HQPBO< GM, ACC >::EmptyVisitorType

Definition at line 30 of file hqpbo.hxx.

template<class GM, class ACC>
typedef GM opengm::HQPBO< GM, ACC >::GraphicalModelType

Definition at line 25 of file hqpbo.hxx.

template<class GM, class ACC>
typedef visitors::TimingVisitor<HQPBO<GM,ACC> > opengm::HQPBO< GM, ACC >::TimingVisitorType

Definition at line 29 of file hqpbo.hxx.

template<class GM, class ACC>
typedef visitors::VerboseVisitor<HQPBO<GM,ACC> > opengm::HQPBO< GM, ACC >::VerboseVisitorType

Definition at line 28 of file hqpbo.hxx.

Constructor & Destructor Documentation

template<class GM, class ACC>
opengm::HQPBO< GM, ACC >::HQPBO ( const GraphicalModelType ,
Parameter  = Parameter() 
)

Definition at line 62 of file hqpbo.hxx.

Member Function Documentation

template<class GM , class ACC >
InferenceTermination opengm::HQPBO< GM, ACC >::arg ( std::vector< LabelType > &  arg,
const size_t n = 1 
) const
inline

Definition at line 201 of file hqpbo.hxx.

template<class GM , class ACC >
const HQPBO< GM, ACC >::GraphicalModelType & opengm::HQPBO< GM, ACC >::graphicalModel ( ) const
inlinevirtual

Implements opengm::Inference< GM, opengm::Minimizer >.

Definition at line 155 of file hqpbo.hxx.

template<class GM , class ACC >
InferenceTermination opengm::HQPBO< GM, ACC >::infer ( )
inlinevirtual

Implements opengm::Inference< GM, opengm::Minimizer >.

Definition at line 162 of file hqpbo.hxx.

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

Definition at line 170 of file hqpbo.hxx.

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

Implements opengm::Inference< GM, opengm::Minimizer >.

Definition at line 148 of file hqpbo.hxx.

template<class GM, class ACC>
void opengm::HQPBO< GM, ACC >::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, opengm::Minimizer >.

Definition at line 53 of file hqpbo.hxx.

Member Data Documentation

template<class GM, class ACC>
opengm::HQPBO< GM, ACC >::OPENGM_GM_TYPE_TYPEDEFS

Definition at line 27 of file hqpbo.hxx.