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

#include <self_fusion.hxx>

+ Inheritance diagram for opengm::SelfFusion< INFERENCE >:
+ Collaboration diagram for opengm::SelfFusion< INFERENCE >:

Classes

class  Parameter
 

Public Types

enum  FusionSolver { QpboFusion, CplexFusion, LazyFlipperFusion }
 
typedef INFERENCE::AccumulationType AccumulationType
 
typedef INFERENCE::GraphicalModelType GraphicalModelType
 
typedef visitors::VerboseVisitor< SelfFusion< INFERENCE > > VerboseVisitorType
 
typedef visitors::EmptyVisitor< SelfFusion< INFERENCE > > EmptyVisitorType
 
typedef visitors::TimingVisitor< SelfFusion< INFERENCE > > TimingVisitorType
 
typedef SelfFusion< INFERENCE > SelfType
 
typedef INFERENCE ToFuseInferenceType
 
- Public Types inherited from opengm::Inference< INFERENCE::GraphicalModelType, INFERENCE::AccumulationType >
typedef INFERENCE::GraphicalModelType GraphicalModelType
 
typedef 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

 SelfFusion (const GraphicalModelType &, const Parameter &=Parameter())
 
std::string name () const
 
const GraphicalModelTypegraphicalModel () const
 
InferenceTermination infer ()
 
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...
 
ValueType value () const
 return the solution (value) More...
 
ValueType bound () const
 return a bound on the solution More...
 
const Parameterparameter () const
 
const size_t maxOrder () const
 
- Public Member Functions inherited from opengm::Inference< INFERENCE::GraphicalModelType, INFERENCE::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...
 
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 INFERENCE>
class opengm::SelfFusion< INFERENCE >

Definition at line 266 of file self_fusion.hxx.

Member Typedef Documentation

template<class INFERENCE>
typedef INFERENCE::AccumulationType opengm::SelfFusion< INFERENCE >::AccumulationType

Definition at line 270 of file self_fusion.hxx.

template<class INFERENCE>
typedef visitors::EmptyVisitor< SelfFusion<INFERENCE> > opengm::SelfFusion< INFERENCE >::EmptyVisitorType

Definition at line 275 of file self_fusion.hxx.

template<class INFERENCE>
typedef INFERENCE::GraphicalModelType opengm::SelfFusion< INFERENCE >::GraphicalModelType

Definition at line 271 of file self_fusion.hxx.

template<class INFERENCE>
typedef SelfFusion<INFERENCE> opengm::SelfFusion< INFERENCE >::SelfType

Definition at line 278 of file self_fusion.hxx.

template<class INFERENCE>
typedef visitors::TimingVisitor< SelfFusion<INFERENCE> > opengm::SelfFusion< INFERENCE >::TimingVisitorType

Definition at line 276 of file self_fusion.hxx.

template<class INFERENCE>
typedef INFERENCE opengm::SelfFusion< INFERENCE >::ToFuseInferenceType

Definition at line 280 of file self_fusion.hxx.

template<class INFERENCE>
typedef visitors::VerboseVisitor< SelfFusion<INFERENCE> > opengm::SelfFusion< INFERENCE >::VerboseVisitorType

Definition at line 274 of file self_fusion.hxx.

Member Enumeration Documentation

template<class INFERENCE>
enum opengm::SelfFusion::FusionSolver
Enumerator
QpboFusion 
CplexFusion 
LazyFlipperFusion 

Definition at line 282 of file self_fusion.hxx.

Constructor & Destructor Documentation

template<class INFERENCE >
opengm::SelfFusion< INFERENCE >::SelfFusion ( const GraphicalModelType gm,
const Parameter parameter = Parameter() 
)

Definition at line 367 of file self_fusion.hxx.

Member Function Documentation

template<class INFERENCE >
InferenceTermination opengm::SelfFusion< 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< INFERENCE::GraphicalModelType, INFERENCE::AccumulationType >.

Definition at line 439 of file self_fusion.hxx.

template<class INFERENCE>
ValueType opengm::SelfFusion< INFERENCE >::bound ( ) const
inlinevirtual

return a bound on the solution

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

Definition at line 338 of file self_fusion.hxx.

template<class INFERENCE >
const SelfFusion< INFERENCE >::GraphicalModelType & opengm::SelfFusion< INFERENCE >::graphicalModel ( ) const
inlinevirtual
template<class INFERENCE >
InferenceTermination opengm::SelfFusion< INFERENCE >::infer ( )
inlinevirtual
template<class INFERENCE >
template<class VisitorType >
InferenceTermination opengm::SelfFusion< INFERENCE >::infer ( VisitorType &  visitor)

Definition at line 418 of file self_fusion.hxx.

template<class INFERENCE>
const size_t opengm::SelfFusion< INFERENCE >::maxOrder ( ) const
inline

Definition at line 345 of file self_fusion.hxx.

template<class INFERENCE >
std::string opengm::SelfFusion< INFERENCE >::name ( ) const
inlinevirtual
template<class INFERENCE>
const Parameter& opengm::SelfFusion< INFERENCE >::parameter ( ) const
inline

Definition at line 342 of file self_fusion.hxx.

template<class INFERENCE>
void opengm::SelfFusion< INFERENCE >::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< INFERENCE::GraphicalModelType, INFERENCE::AccumulationType >.

Definition at line 385 of file self_fusion.hxx.

template<class INFERENCE>
ValueType opengm::SelfFusion< INFERENCE >::value ( ) const
inlinevirtual

return the solution (value)

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

Definition at line 334 of file self_fusion.hxx.

Member Data Documentation

template<class INFERENCE>
opengm::SelfFusion< INFERENCE >::OPENGM_GM_TYPE_TYPEDEFS

Definition at line 272 of file self_fusion.hxx.