A fremework for move making algorithms. More...
#include <movemaker.hxx>
Public Types | |
typedef GM | GraphicalModelType |
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 |
typedef std::vector< LabelType > ::const_iterator | LabelIterator |
Public Member Functions | |
Movemaker (const GraphicalModelType &) | |
template<class StateIterator > | |
Movemaker (const GraphicalModelType &, StateIterator) | |
ValueType | value () const |
template<class IndexIterator , class StateIterator > | |
ValueType | valueAfterMove (IndexIterator, IndexIterator, StateIterator) |
const LabelType & | state (const size_t) const |
LabelIterator | stateBegin () const |
LabelIterator | stateEnd () const |
void | reset () |
template<class StateIterator > | |
void | initialize (StateIterator) |
template<class IndexIterator , class StateIterator > | |
ValueType | move (IndexIterator, IndexIterator, StateIterator) |
template<class ACCUMULATOR , class IndexIterator > | |
ValueType | moveOptimally (IndexIterator, IndexIterator) |
for a subset of variables, move to a labeling that is optimal w.r.t. ACCUMULATOR | |
template<class ACCUMULATOR , class IndexIterator > | |
ValueType | moveOptimallyWithAllLabelsChanging (IndexIterator, IndexIterator) |
template<class INFERENCE_TYPE , class INFERENCE_PARAMETER , class INDEX_ITERATOR , class STATE_ITERATOR > | |
void | proposeMoveAccordingToInference (const INFERENCE_PARAMETER &, INDEX_ITERATOR, INDEX_ITERATOR, std::vector< LabelType > &) const |
A fremework for move making algorithms.
Definition at line 24 of file movemaker.hxx.
typedef GraphicalModelType::FactorType opengm::Movemaker< GM >::FactorType |
Definition at line 27 of file movemaker.hxx.
typedef GraphicalModelType::FunctionIdentifier opengm::Movemaker< GM >::FunctionIdentifier |
Definition at line 27 of file movemaker.hxx.
typedef GM opengm::Movemaker< GM >::GraphicalModelType |
Definition at line 26 of file movemaker.hxx.
typedef GraphicalModelType::IndependentFactorType opengm::Movemaker< GM >::IndependentFactorType |
Definition at line 27 of file movemaker.hxx.
typedef GraphicalModelType::IndexType opengm::Movemaker< GM >::IndexType |
Definition at line 27 of file movemaker.hxx.
typedef std::vector<LabelType>::const_iterator opengm::Movemaker< GM >::LabelIterator |
Definition at line 28 of file movemaker.hxx.
typedef GraphicalModelType::LabelType opengm::Movemaker< GM >::LabelType |
Definition at line 27 of file movemaker.hxx.
typedef GraphicalModelType::OperatorType opengm::Movemaker< GM >::OperatorType |
Definition at line 27 of file movemaker.hxx.
typedef GraphicalModelType::ValueType opengm::Movemaker< GM >::ValueType |
Definition at line 27 of file movemaker.hxx.
opengm::Movemaker< GM >::Movemaker | ( | const GraphicalModelType & | gm | ) | [inline] |
Definition at line 210 of file movemaker.hxx.
opengm::Movemaker< GM >::Movemaker | ( | const GraphicalModelType & | gm, | |
StateIterator | it | |||
) | [inline] |
Definition at line 229 of file movemaker.hxx.
void opengm::Movemaker< GM >::initialize | ( | StateIterator | it | ) | [inline] |
Movemaker< GM >::ValueType opengm::Movemaker< GM >::move | ( | IndexIterator | begin, | |
IndexIterator | end, | |||
StateIterator | sit | |||
) | [inline] |
Movemaker< GM >::ValueType opengm::Movemaker< GM >::moveOptimally | ( | IndexIterator | variableIndices, | |
IndexIterator | variableIndicesEnd | |||
) | [inline] |
for a subset of variables, move to a labeling that is optimal w.r.t. ACCUMULATOR
variableIndices | random access iterator to the beginning of a sequence of variable indices | |
variableIndicesEnd | random access iterator to the end of a sequence of variable indices |
Definition at line 371 of file movemaker.hxx.
Movemaker< GM >::ValueType opengm::Movemaker< GM >::moveOptimallyWithAllLabelsChanging | ( | IndexIterator | variableIndices, | |
IndexIterator | variableIndicesEnd | |||
) | [inline] |
Definition at line 464 of file movemaker.hxx.
void opengm::Movemaker< GM >::proposeMoveAccordingToInference | ( | const INFERENCE_PARAMETER & | inferenceParam, | |
INDEX_ITERATOR | variablesBegin, | |||
INDEX_ITERATOR | variablesEnd, | |||
std::vector< LabelType > & | states | |||
) | const [inline] |
Definition at line 103 of file movemaker.hxx.
void opengm::Movemaker< GM >::reset | ( | ) | [inline] |
const Movemaker< GM >::LabelType & opengm::Movemaker< GM >::state | ( | const size_t | variableIndex | ) | const [inline] |
Movemaker< GM >::LabelIterator opengm::Movemaker< GM >::stateBegin | ( | ) | const [inline] |
Definition at line 606 of file movemaker.hxx.
Movemaker< GM >::LabelIterator opengm::Movemaker< GM >::stateEnd | ( | ) | const [inline] |
Definition at line 612 of file movemaker.hxx.
Movemaker< GM >::ValueType opengm::Movemaker< GM >::value | ( | ) | const [inline] |
Movemaker< GM >::ValueType opengm::Movemaker< GM >::valueAfterMove | ( | IndexIterator | begin, | |
IndexIterator | end, | |||
StateIterator | destinationState | |||
) | [inline] |