Partition Move
Currently Partition Move only implements the Kernighan-Lin-Algorithm.
More...
#include <partition-move.hxx>
Classes | |
struct | Parameter |
Public Types | |
typedef ACC | AccumulationType |
typedef GM | GraphicalModelType |
typedef size_t | LPIndexType |
typedef VerboseVisitor < PartitionMove< GM, ACC > > | VerboseVisitorType |
typedef EmptyVisitor < PartitionMove< GM, ACC > > | EmptyVisitorType |
typedef TimingVisitor < PartitionMove< GM, ACC > > | TimingVisitorType |
typedef boost::unordered_map < IndexType, LPIndexType > | EdgeMapType |
typedef boost::unordered_set < IndexType > | VariableSetType |
Public Member Functions | |
~PartitionMove () | |
PartitionMove (const GraphicalModelType &, Parameter para=Parameter()) | |
virtual std::string | name () const |
const GraphicalModelType & | graphicalModel () const |
virtual InferenceTermination | infer () |
template<class VisitorType > | |
InferenceTermination | infer (VisitorType &) |
virtual InferenceTermination | arg (std::vector< LabelType > &, const size_t=1) const |
output a solution | |
Public Attributes | |
OPENGM_GM_TYPE_TYPEDEFS |
Partition Move
Currently Partition Move only implements the Kernighan-Lin-Algorithm.
Definition at line 39 of file partition-move.hxx.
typedef ACC opengm::PartitionMove< GM, ACC >::AccumulationType |
Reimplemented from opengm::Inference< GM, ACC >.
Definition at line 42 of file partition-move.hxx.
typedef boost::unordered_map<IndexType, LPIndexType> opengm::PartitionMove< GM, ACC >::EdgeMapType |
Definition at line 50 of file partition-move.hxx.
typedef EmptyVisitor<PartitionMove<GM,ACC> > opengm::PartitionMove< GM, ACC >::EmptyVisitorType |
Definition at line 47 of file partition-move.hxx.
typedef GM opengm::PartitionMove< GM, ACC >::GraphicalModelType |
Reimplemented from opengm::Inference< GM, ACC >.
Definition at line 43 of file partition-move.hxx.
typedef size_t opengm::PartitionMove< GM, ACC >::LPIndexType |
Definition at line 45 of file partition-move.hxx.
typedef TimingVisitor<PartitionMove<GM,ACC> > opengm::PartitionMove< GM, ACC >::TimingVisitorType |
Definition at line 48 of file partition-move.hxx.
typedef boost::unordered_set<IndexType> opengm::PartitionMove< GM, ACC >::VariableSetType |
Definition at line 51 of file partition-move.hxx.
typedef VerboseVisitor<PartitionMove<GM,ACC> > opengm::PartitionMove< GM, ACC >::VerboseVisitorType |
Definition at line 46 of file partition-move.hxx.
opengm::PartitionMove< GM, ACC >::~PartitionMove | ( | ) | [inline] |
Definition at line 95 of file partition-move.hxx.
opengm::PartitionMove< GM, ACC >::PartitionMove | ( | const GraphicalModelType & | gm, | |
Parameter | para = Parameter() | |||
) | [inline] |
Definition at line 101 of file partition-move.hxx.
virtual InferenceTermination opengm::PartitionMove< GM, ACC >::arg | ( | std::vector< LabelType > & | arg, | |
const | argIndex = 1 | |||
) | const [virtual] |
output a solution
[out] | arg | labeling |
argIndex | solution index (0=best, 1=second best, etc.) |
Reimplemented from opengm::Inference< GM, ACC >.
const GraphicalModelType& opengm::PartitionMove< GM, ACC >::graphicalModel | ( | ) | const [inline, virtual] |
Implements opengm::Inference< GM, ACC >.
Definition at line 65 of file partition-move.hxx.
InferenceTermination opengm::PartitionMove< GM, ACC >::infer | ( | VisitorType & | visitor | ) | [inline] |
Definition at line 233 of file partition-move.hxx.
InferenceTermination opengm::PartitionMove< GM, ACC >::infer | ( | ) | [inline, virtual] |
Implements opengm::Inference< GM, ACC >.
Definition at line 223 of file partition-move.hxx.
virtual std::string opengm::PartitionMove< GM, ACC >::name | ( | ) | const [inline, virtual] |
Implements opengm::Inference< GM, ACC >.
Definition at line 64 of file partition-move.hxx.
opengm::PartitionMove< GM, ACC >::OPENGM_GM_TYPE_TYPEDEFS |
Definition at line 44 of file partition-move.hxx.