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

#include <lsatr.hxx>

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

Classes

class  Parameter
 

Public Types

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

 LSA_TR (const GraphicalModelType &)
 
 LSA_TR (const GraphicalModelType &, const Parameter &)
 
 ~LSA_TR ()
 
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...
 
- Public Member Functions inherited from opengm::Inference< GM, ACC >
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 ACC>
class opengm::LSA_TR< GM, ACC >

Definition at line 91 of file lsatr.hxx.

Member Typedef Documentation

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

Definition at line 94 of file lsatr.hxx.

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

Definition at line 98 of file lsatr.hxx.

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

Definition at line 95 of file lsatr.hxx.

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

Definition at line 99 of file lsatr.hxx.

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

Definition at line 97 of file lsatr.hxx.

Constructor & Destructor Documentation

template<class GM , class ACC >
opengm::LSA_TR< GM, ACC >::LSA_TR ( const GraphicalModelType gm)
inline

Definition at line 560 of file lsatr.hxx.

template<class GM , class ACC >
opengm::LSA_TR< GM, ACC >::LSA_TR ( const GraphicalModelType gm,
const Parameter parameter 
)

Definition at line 571 of file lsatr.hxx.

template<class GM , class ACC >
opengm::LSA_TR< GM, ACC >::~LSA_TR ( )

Definition at line 555 of file lsatr.hxx.

Member Function Documentation

template<class GM , class ACC >
InferenceTermination opengm::LSA_TR< GM, ACC >::arg ( std::vector< LabelType > &  arg,
const size_t  argIndex = 1 
) const
inlinevirtual

output a solution

Parameters
[out]arglabeling
argIndexsolution index (1=best, 2=second best, etc.)

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

Definition at line 751 of file lsatr.hxx.

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

Implements opengm::Inference< GM, ACC >.

Definition at line 620 of file lsatr.hxx.

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

Implements opengm::Inference< GM, ACC >.

Definition at line 627 of file lsatr.hxx.

template<class GM , class ACC >
template<class VisitorType >
InferenceTermination opengm::LSA_TR< GM, ACC >::infer ( VisitorType &  visitor)

Definition at line 637 of file lsatr.hxx.

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

Implements opengm::Inference< GM, ACC >.

Definition at line 613 of file lsatr.hxx.

template<class GM , class ACC >
void opengm::LSA_TR< GM, ACC >::reset ( )
inline

Definition at line 600 of file lsatr.hxx.

template<class GM, class ACC>
void opengm::LSA_TR< GM, ACC >::setStartingPoint ( typename std::vector< LabelType >::const_iterator  begin)
inlinevirtual

set initial labeling

Parameters
beginiterator to the beginning of a sequence of labels

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

Definition at line 607 of file lsatr.hxx.

template<class GM, class ACC>
virtual ValueType opengm::LSA_TR< GM, ACC >::value ( ) const
inlinevirtual

return the solution (value)

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

Definition at line 134 of file lsatr.hxx.

Member Data Documentation

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

Definition at line 96 of file lsatr.hxx.