opengm::Movemaker< GM > Class Template Reference

A fremework for move making algorithms. More...

#include <movemaker.hxx>

Inheritance diagram for opengm::Movemaker< GM >:
Inheritance graph
[legend]
Collaboration diagram for opengm::Movemaker< GM >:
Collaboration graph
[legend]

List of all members.

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 LabelTypestate (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

Detailed Description

template<class GM>
class opengm::Movemaker< GM >

A fremework for move making algorithms.

Definition at line 24 of file movemaker.hxx.


Member Typedef Documentation

template<class GM>
typedef GraphicalModelType::FactorType opengm::Movemaker< GM >::FactorType

Definition at line 27 of file movemaker.hxx.

template<class GM>
typedef GraphicalModelType::FunctionIdentifier opengm::Movemaker< GM >::FunctionIdentifier

Definition at line 27 of file movemaker.hxx.

template<class GM>
typedef GM opengm::Movemaker< GM >::GraphicalModelType

Definition at line 26 of file movemaker.hxx.

template<class GM>
typedef GraphicalModelType::IndependentFactorType opengm::Movemaker< GM >::IndependentFactorType

Definition at line 27 of file movemaker.hxx.

template<class GM>
typedef GraphicalModelType::IndexType opengm::Movemaker< GM >::IndexType

Definition at line 27 of file movemaker.hxx.

template<class GM>
typedef std::vector<LabelType>::const_iterator opengm::Movemaker< GM >::LabelIterator

Definition at line 28 of file movemaker.hxx.

template<class GM>
typedef GraphicalModelType::LabelType opengm::Movemaker< GM >::LabelType

Definition at line 27 of file movemaker.hxx.

template<class GM>
typedef GraphicalModelType::OperatorType opengm::Movemaker< GM >::OperatorType

Definition at line 27 of file movemaker.hxx.

template<class GM>
typedef GraphicalModelType::ValueType opengm::Movemaker< GM >::ValueType

Definition at line 27 of file movemaker.hxx.


Constructor & Destructor Documentation

template<class GM >
opengm::Movemaker< GM >::Movemaker ( const GraphicalModelType gm  )  [inline]

Definition at line 210 of file movemaker.hxx.

template<class GM >
template<class StateIterator >
opengm::Movemaker< GM >::Movemaker ( const GraphicalModelType gm,
StateIterator  it 
) [inline]

Definition at line 229 of file movemaker.hxx.


Member Function Documentation

template<class GM >
template<class StateIterator >
void opengm::Movemaker< GM >::initialize ( StateIterator  it  )  [inline]

Definition at line 253 of file movemaker.hxx.

Here is the caller graph for this function:

template<class GM >
template<class IndexIterator , class StateIterator >
Movemaker< GM >::ValueType opengm::Movemaker< GM >::move ( IndexIterator  begin,
IndexIterator  end,
StateIterator  sit 
) [inline]

Definition at line 347 of file movemaker.hxx.

Here is the caller graph for this function:

template<class GM >
template<class ACCUMULATOR , class IndexIterator >
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

Parameters:
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
Returns:
new value

Definition at line 371 of file movemaker.hxx.

template<class GM >
template<class ACCUMULATOR , class IndexIterator >
Movemaker< GM >::ValueType opengm::Movemaker< GM >::moveOptimallyWithAllLabelsChanging ( IndexIterator  variableIndices,
IndexIterator  variableIndicesEnd 
) [inline]

Definition at line 464 of file movemaker.hxx.

template<class GM >
template<class INFERENCE_TYPE , class INFERENCE_PARAMETER , class INDEX_ITERATOR , class STATE_ITERATOR >
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.

template<class GM >
void opengm::Movemaker< GM >::reset (  )  [inline]

Definition at line 265 of file movemaker.hxx.

Here is the caller graph for this function:

template<class GM >
const Movemaker< GM >::LabelType & opengm::Movemaker< GM >::state ( const size_t  variableIndex  )  const [inline]

Definition at line 597 of file movemaker.hxx.

Here is the caller graph for this function:

template<class GM >
Movemaker< GM >::LabelIterator opengm::Movemaker< GM >::stateBegin (  )  const [inline]

Definition at line 606 of file movemaker.hxx.

template<class GM >
Movemaker< GM >::LabelIterator opengm::Movemaker< GM >::stateEnd (  )  const [inline]

Definition at line 612 of file movemaker.hxx.

template<class GM >
Movemaker< GM >::ValueType opengm::Movemaker< GM >::value (  )  const [inline]

Definition at line 275 of file movemaker.hxx.

Here is the caller graph for this function:

template<class GM >
template<class IndexIterator , class StateIterator >
Movemaker< GM >::ValueType opengm::Movemaker< GM >::valueAfterMove ( IndexIterator  begin,
IndexIterator  end,
StateIterator  destinationState 
) [inline]

Definition at line 283 of file movemaker.hxx.

Here is the caller graph for this function:

 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