#include <dynamicprogramming.hxx>
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 GraphicalModelType & | graphicalModel () 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 |
Definition at line 16 of file dynamicprogramming.hxx.
typedef ACC opengm::DynamicProgramming< GM, ACC >::AccumulationType |
Reimplemented from opengm::Inference< GM, ACC >.
Definition at line 18 of file dynamicprogramming.hxx.
typedef ACC opengm::DynamicProgramming< GM, ACC >::AccumulatorType |
Definition at line 19 of file dynamicprogramming.hxx.
typedef EmptyVisitor<DynamicProgramming<GM,ACC> > opengm::DynamicProgramming< GM, ACC >::EmptyVisitorType |
Definition at line 26 of file dynamicprogramming.hxx.
typedef GM opengm::DynamicProgramming< GM, ACC >::GraphicalModelType |
Reimplemented from opengm::Inference< GM, ACC >.
Definition at line 20 of file dynamicprogramming.hxx.
typedef unsigned char opengm::DynamicProgramming< GM, ACC >::MyStateType |
Definition at line 22 of file dynamicprogramming.hxx.
typedef double opengm::DynamicProgramming< GM, ACC >::MyValueType |
Definition at line 23 of file dynamicprogramming.hxx.
typedef TimingVisitor<DynamicProgramming<GM,ACC> > opengm::DynamicProgramming< GM, ACC >::TimingVisitorType |
Definition at line 25 of file dynamicprogramming.hxx.
typedef VerboseVisitor<DynamicProgramming<GM,ACC> > opengm::DynamicProgramming< GM, ACC >::VerboseVisitorType |
Definition at line 24 of file dynamicprogramming.hxx.
opengm::DynamicProgramming< GM, ACC >::DynamicProgramming | ( | const GraphicalModelType & | gm, | |
const Parameter & | para = Parameter() | |||
) | [inline] |
Definition at line 77 of file dynamicprogramming.hxx.
opengm::DynamicProgramming< GM, ACC >::~DynamicProgramming | ( | ) | [inline] |
Definition at line 69 of file dynamicprogramming.hxx.
InferenceTermination opengm::DynamicProgramming< GM, ACC >::arg | ( | std::vector< LabelType > & | arg, | |
const size_t | argIndex = 1 | |||
) | const [inline, virtual] |
output a solution
[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.
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.
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.
InferenceTermination opengm::DynamicProgramming< GM, ACC >::infer | ( | VISITOR & | visitor | ) | [inline] |
Definition at line 162 of file dynamicprogramming.hxx.
InferenceTermination opengm::DynamicProgramming< GM, ACC >::infer | ( | ) | [inline, virtual] |
Implements opengm::Inference< GM, ACC >.
Definition at line 153 of file dynamicprogramming.hxx.
std::string opengm::DynamicProgramming< GM, ACC >::name | ( | ) | const [inline, virtual] |
Implements opengm::Inference< GM, ACC >.
Definition at line 58 of file dynamicprogramming.hxx.
opengm::DynamicProgramming< GM, ACC >::OPENGM_GM_TYPE_TYPEDEFS |
Definition at line 21 of file dynamicprogramming.hxx.