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

#include <srmp.hxx>

+ Inheritance diagram for opengm::external::SRMP< GM >:
+ Collaboration diagram for opengm::external::SRMP< GM >:

Classes

struct  Parameter
 

Public Types

typedef GM GraphicalModelType
 
typedef opengm::Minimizer AccumulationType
 
typedef visitors::VerboseVisitor< SRMP< GM > > VerboseVisitorType
 
typedef visitors::EmptyVisitor< SRMP< GM > > EmptyVisitorType
 
typedef visitors::TimingVisitor< SRMP< GM > > TimingVisitorType
 
- 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

 SRMP (const GraphicalModelType &gm, const Parameter para=Parameter())
 
 ~SRMP ()
 
std::string name () const
 
const GraphicalModelTypegraphicalModel () const
 
InferenceTermination infer ()
 
template<class VISITOR >
InferenceTermination infer (VISITOR &visitor)
 
InferenceTermination arg (std::vector< LabelType > &arg, const size_t &n=1) const
 
GM::ValueType bound () const
 return a bound on the solution More...
 
GM::ValueType value () const
 return the solution (value) More...
 
- Public Member Functions inherited from opengm::Inference< GM, opengm::Minimizer >
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...
 
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 opengm::external::SRMP< GM >

Definition at line 21 of file srmp.hxx.

Member Typedef Documentation

template<class GM>
typedef opengm::Minimizer opengm::external::SRMP< GM >::AccumulationType

Definition at line 24 of file srmp.hxx.

template<class GM>
typedef visitors::EmptyVisitor<SRMP<GM> > opengm::external::SRMP< GM >::EmptyVisitorType

Definition at line 27 of file srmp.hxx.

template<class GM>
typedef GM opengm::external::SRMP< GM >::GraphicalModelType

Definition at line 23 of file srmp.hxx.

template<class GM>
typedef visitors::TimingVisitor<SRMP<GM> > opengm::external::SRMP< GM >::TimingVisitorType

Definition at line 28 of file srmp.hxx.

Definition at line 26 of file srmp.hxx.

Constructor & Destructor Documentation

template<class GM >
opengm::external::SRMP< GM >::SRMP ( const GraphicalModelType gm,
const Parameter  para = Parameter() 
)
inline

Definition at line 100 of file srmp.hxx.

+ Here is the call graph for this function:

template<class GM >
opengm::external::SRMP< GM >::~SRMP ( )
inline

Definition at line 152 of file srmp.hxx.

Member Function Documentation

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

Definition at line 201 of file srmp.hxx.

template<class GM >
GM::ValueType opengm::external::SRMP< GM >::bound ( ) const
inlinevirtual

return a bound on the solution

Reimplemented from opengm::Inference< GM, opengm::Minimizer >.

Definition at line 215 of file srmp.hxx.

template<class GM >
const SRMP< GM >::GraphicalModelType & opengm::external::SRMP< GM >::graphicalModel ( ) const
inlinevirtual

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

Definition at line 167 of file srmp.hxx.

template<class GM >
InferenceTermination opengm::external::SRMP< GM >::infer ( )
inlinevirtual

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

Definition at line 172 of file srmp.hxx.

template<class GM >
template<class VISITOR >
InferenceTermination opengm::external::SRMP< GM >::infer ( VISITOR &  visitor)
inline

Definition at line 179 of file srmp.hxx.

template<class GM >
std::string opengm::external::SRMP< GM >::name ( ) const
inlinevirtual

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

Definition at line 162 of file srmp.hxx.

template<class GM >
GM::ValueType opengm::external::SRMP< GM >::value ( ) const
inlinevirtual

return the solution (value)

Reimplemented from opengm::Inference< GM, opengm::Minimizer >.

Definition at line 220 of file srmp.hxx.

Member Data Documentation

template<class GM>
opengm::external::SRMP< GM >::OPENGM_GM_TYPE_TYPEDEFS

Definition at line 25 of file srmp.hxx.