#include <infandflip.hxx>
Classes | |
struct | Parameter |
Public Types | |
typedef ACC | AccumulationType |
typedef GM | GraphicalModelType |
typedef VerboseVisitor < InfAndFlip< GM, ACC, INF > > | VerboseVisitorType |
typedef EmptyVisitor < InfAndFlip< GM, ACC, INF > > | EmptyVisitorType |
typedef TimingVisitor < InfAndFlip< GM, ACC, INF > > | TimingVisitorType |
Public Member Functions | |
InfAndFlip (const GraphicalModelType &, typename InfAndFlip::Parameter param) | |
std::string | name () const |
const GraphicalModelType & | graphicalModel () const |
ValueType | value () const |
return the solution (value) | |
ValueType | bound () const |
return a bound on the solution | |
void | reset () |
InferenceTermination | infer () |
start the algorithm | |
template<class VisitorType > | |
InferenceTermination | infer (VisitorType &) |
start the algorithm | |
InferenceTermination | arg (std::vector< LabelType > &, const size_t=1) const |
output a solution | |
Public Attributes | |
OPENGM_GM_TYPE_TYPEDEFS |
Inference and Flip
.
Definition at line 27 of file infandflip.hxx.
typedef ACC opengm::InfAndFlip< GM, ACC, INF >::AccumulationType |
Reimplemented from opengm::Inference< GM, ACC >.
Definition at line 29 of file infandflip.hxx.
typedef EmptyVisitor<InfAndFlip<GM, ACC, INF> > opengm::InfAndFlip< GM, ACC, INF >::EmptyVisitorType |
Definition at line 33 of file infandflip.hxx.
typedef GM opengm::InfAndFlip< GM, ACC, INF >::GraphicalModelType |
Reimplemented from opengm::Inference< GM, ACC >.
Definition at line 30 of file infandflip.hxx.
typedef TimingVisitor<InfAndFlip<GM, ACC, INF> > opengm::InfAndFlip< GM, ACC, INF >::TimingVisitorType |
Definition at line 34 of file infandflip.hxx.
typedef VerboseVisitor<InfAndFlip<GM, ACC, INF> > opengm::InfAndFlip< GM, ACC, INF >::VerboseVisitorType |
Definition at line 32 of file infandflip.hxx.
opengm::InfAndFlip< GM, ACC, INF >::InfAndFlip | ( | const GraphicalModelType & | , | |
typename InfAndFlip< GM, ACC, INF >::Parameter | param | |||
) |
InferenceTermination opengm::InfAndFlip< GM, ACC, INF >::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 143 of file infandflip.hxx.
InfAndFlip< GM, ACC, INF >::ValueType opengm::InfAndFlip< GM, ACC, INF >::bound | ( | ) | const [inline, virtual] |
return a bound on the solution
Reimplemented from opengm::Inference< GM, ACC >.
Definition at line 168 of file infandflip.hxx.
const InfAndFlip< GM, ACC, INF >::GraphicalModelType & opengm::InfAndFlip< GM, ACC, INF >::graphicalModel | ( | ) | const [inline, virtual] |
Implements opengm::Inference< GM, ACC >.
Definition at line 98 of file infandflip.hxx.
InferenceTermination opengm::InfAndFlip< GM, ACC, INF >::infer | ( | VisitorType & | visitor | ) | [inline] |
start the algorithm
Definition at line 108 of file infandflip.hxx.
InferenceTermination opengm::InfAndFlip< GM, ACC, INF >::infer | ( | ) | [inline, virtual] |
start the algorithm
Implements opengm::Inference< GM, ACC >.
Definition at line 134 of file infandflip.hxx.
std::string opengm::InfAndFlip< GM, ACC, INF >::name | ( | ) | const [inline, virtual] |
Implements opengm::Inference< GM, ACC >.
Definition at line 91 of file infandflip.hxx.
void opengm::InfAndFlip< GM, ACC, INF >::reset | ( | ) | [inline] |
Definition at line 85 of file infandflip.hxx.
InfAndFlip< GM, ACC, INF >::ValueType opengm::InfAndFlip< GM, ACC, INF >::value | ( | ) | const [inline, virtual] |
return the solution (value)
Reimplemented from opengm::Inference< GM, ACC >.
Definition at line 162 of file infandflip.hxx.
opengm::InfAndFlip< GM, ACC, INF >::OPENGM_GM_TYPE_TYPEDEFS |
Definition at line 31 of file infandflip.hxx.