opengm::DynamicProgramming< GM, ACC > Class Template Reference
[Inference Algorithms]

DynamicProgramming. More...

#include <dynamicprogramming.hxx>

Inheritance diagram for opengm::DynamicProgramming< GM, ACC >:
Inheritance graph
[legend]
Collaboration diagram for opengm::DynamicProgramming< GM, ACC >:
Collaboration graph
[legend]

List of all members.

Classes

struct  Parameter

Public Types

typedef ACC AccumulationType
typedef ACC AccumulatorType
typedef GM GraphicalModelType
typedef unsigned char MyStateType
typedef double MyValueType
typedef VerboseVisitor
< DynamicProgramming< GM, ACC > > 
VerboseVisitorType
typedef TimingVisitor
< DynamicProgramming< GM, ACC > > 
TimingVisitorType
typedef EmptyVisitor
< DynamicProgramming< GM, ACC > > 
EmptyVisitorType

Public Member Functions

 DynamicProgramming (const GraphicalModelType &, const Parameter &=Parameter())
 ~DynamicProgramming ()
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
 output a solution
void getNodeInfo (const IndexType Inode, std::vector< ValueType > &values, std::vector< std::vector< LabelType > > &substates, std::vector< IndexType > &nodes) const

Public Attributes

 OPENGM_GM_TYPE_TYPEDEFS

Detailed Description

template<class GM, class ACC>
class opengm::DynamicProgramming< GM, ACC >

DynamicProgramming.

Definition at line 16 of file dynamicprogramming.hxx.


Member Typedef Documentation

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

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

Definition at line 18 of file dynamicprogramming.hxx.

template<class GM, class ACC>
typedef ACC opengm::DynamicProgramming< GM, ACC >::AccumulatorType

Definition at line 19 of file dynamicprogramming.hxx.

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

Definition at line 26 of file dynamicprogramming.hxx.

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

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

Definition at line 20 of file dynamicprogramming.hxx.

template<class GM, class ACC>
typedef unsigned char opengm::DynamicProgramming< GM, ACC >::MyStateType

Definition at line 22 of file dynamicprogramming.hxx.

template<class GM, class ACC>
typedef double opengm::DynamicProgramming< GM, ACC >::MyValueType

Definition at line 23 of file dynamicprogramming.hxx.

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

Definition at line 25 of file dynamicprogramming.hxx.

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

Definition at line 24 of file dynamicprogramming.hxx.


Constructor & Destructor Documentation

template<class GM , class ACC >
opengm::DynamicProgramming< GM, ACC >::DynamicProgramming ( const GraphicalModelType gm,
const Parameter para = Parameter() 
) [inline]

Definition at line 77 of file dynamicprogramming.hxx.

template<class GM , class ACC >
opengm::DynamicProgramming< GM, ACC >::~DynamicProgramming (  )  [inline]

Definition at line 69 of file dynamicprogramming.hxx.


Member Function Documentation

template<class GM , class ACC >
InferenceTermination opengm::DynamicProgramming< GM, ACC >::arg ( std::vector< LabelType > &  arg,
const size_t  argIndex = 1 
) const [inline, virtual]

output a solution

Parameters:
[out] arg labeling
argIndex solution index (0=best, 1=second best, etc.)

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

Definition at line 234 of file dynamicprogramming.hxx.

template<class GM , class ACC >
void opengm::DynamicProgramming< GM, ACC >::getNodeInfo ( const IndexType  Inode,
std::vector< ValueType > &  values,
std::vector< std::vector< LabelType > > &  substates,
std::vector< IndexType > &  nodes 
) const [inline]

Definition at line 283 of file dynamicprogramming.hxx.

template<class GM , class ACC >
const DynamicProgramming< GM, ACC >::GraphicalModelType & opengm::DynamicProgramming< GM, ACC >::graphicalModel (  )  const [inline, virtual]

Implements opengm::Inference< GM, ACC >.

Definition at line 64 of file dynamicprogramming.hxx.

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

Definition at line 162 of file dynamicprogramming.hxx.

template<class GM , class ACC >
InferenceTermination opengm::DynamicProgramming< GM, ACC >::infer (  )  [inline, virtual]

Implements opengm::Inference< GM, ACC >.

Definition at line 153 of file dynamicprogramming.hxx.

template<class GM , class ACC >
std::string opengm::DynamicProgramming< GM, ACC >::name (  )  const [inline, virtual]

Implements opengm::Inference< GM, ACC >.

Definition at line 58 of file dynamicprogramming.hxx.


Member Data Documentation

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

Definition at line 21 of file dynamicprogramming.hxx.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Mon Jun 17 16:31:12 2013 for OpenGM by  doxygen 1.6.3