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

GRANTE GRANTE inference algorithm class. More...

#include <grante.hxx>

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

Classes

struct  InsertFunctor
 
struct  Parameter
 Parameter. More...
 

Public Types

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

 GRANTE (const GraphicalModelType &gm, const Parameter &para)
 
 ~GRANTE ()
 
std::string name () const
 
const GraphicalModelTypegraphicalModel () const
 
template<class VISITOR >
InferenceTermination infer (VISITOR &visitor)
 
InferenceTermination infer ()
 
InferenceTermination arg (std::vector< LabelType > &, const size_t &=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
 

Protected Member Functions

bool sanityCheck (ValueType value) const
 
void groupFactors (std::vector< std::vector< IndexType > > &groupedFactors) const
 
void groupFactorTypes (const std::vector< std::vector< IndexType > > &groupedFactors, std::vector< std::vector< IndexType > > &groupedFactorTypes) const
 

Protected Attributes

const GraphicalModelTypegm_
 
Parameter parameter_
 
ValueType value_
 
ValueType lowerBound_
 
Grante::FactorGraphModel * granteModel_
 
Grante::FactorGraph * granteGraph_
 
Grante::InferenceMethod * granteInferenceMethod_
 
std::vector< unsigned int > granteState_
 
std::vector< Grante::FactorDataSource * > granteDataSourceCollector_
 

Detailed Description

template<class GM>
class opengm::external::GRANTE< GM >

GRANTE GRANTE inference algorithm class.

Maximum factor order : ?

Definition at line 34 of file grante.hxx.

Member Typedef Documentation

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

Definition at line 37 of file grante.hxx.

Definition at line 40 of file grante.hxx.

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

Definition at line 36 of file grante.hxx.

Definition at line 41 of file grante.hxx.

Definition at line 39 of file grante.hxx.

Constructor & Destructor Documentation

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

Definition at line 115 of file grante.hxx.

+ Here is the call graph for this function:

template<class GM >
opengm::external::GRANTE< GM >::~GRANTE ( )

Definition at line 250 of file grante.hxx.

Member Function Documentation

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

Definition at line 291 of file grante.hxx.

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

return a bound on the solution

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

Definition at line 300 of file grante.hxx.

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

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

Definition at line 271 of file grante.hxx.

template<class GM >
void opengm::external::GRANTE< GM >::groupFactors ( std::vector< std::vector< IndexType > > &  groupedFactors) const
inlineprotected

Definition at line 325 of file grante.hxx.

+ Here is the caller graph for this function:

template<class GM >
void opengm::external::GRANTE< GM >::groupFactorTypes ( const std::vector< std::vector< IndexType > > &  groupedFactors,
std::vector< std::vector< IndexType > > &  groupedFactorTypes 
) const
inlineprotected

Definition at line 349 of file grante.hxx.

+ Here is the caller graph for this function:

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

Definition at line 283 of file grante.hxx.

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

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

Definition at line 276 of file grante.hxx.

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

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

Definition at line 266 of file grante.hxx.

+ Here is the caller graph for this function:

template<class GM >
bool opengm::external::GRANTE< GM >::sanityCheck ( ValueType  value) const
inlineprotected

Definition at line 312 of file grante.hxx.

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

return the solution (value)

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

Definition at line 305 of file grante.hxx.

Member Data Documentation

template<class GM>
const GraphicalModelType& opengm::external::GRANTE< GM >::gm_
protected

Definition at line 87 of file grante.hxx.

template<class GM>
std::vector<Grante::FactorDataSource*> opengm::external::GRANTE< GM >::granteDataSourceCollector_
protected

Definition at line 96 of file grante.hxx.

template<class GM>
Grante::FactorGraph* opengm::external::GRANTE< GM >::granteGraph_
protected

Definition at line 93 of file grante.hxx.

template<class GM>
Grante::InferenceMethod* opengm::external::GRANTE< GM >::granteInferenceMethod_
protected

Definition at line 94 of file grante.hxx.

template<class GM>
Grante::FactorGraphModel* opengm::external::GRANTE< GM >::granteModel_
protected

Definition at line 92 of file grante.hxx.

template<class GM>
std::vector<unsigned int> opengm::external::GRANTE< GM >::granteState_
protected

Definition at line 95 of file grante.hxx.

template<class GM>
ValueType opengm::external::GRANTE< GM >::lowerBound_
protected

Definition at line 90 of file grante.hxx.

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

Definition at line 38 of file grante.hxx.

template<class GM>
Parameter opengm::external::GRANTE< GM >::parameter_
protected

Definition at line 88 of file grante.hxx.

template<class GM>
ValueType opengm::external::GRANTE< GM >::value_
protected

Definition at line 89 of file grante.hxx.