|
OpenGM
2.3.x
Discrete Graphical Model Library
|
truncated squared difference of the labels of two variables More...
#include <truncated_squared_difference.hxx>
Inheritance diagram for opengm::TruncatedSquaredDifferenceFunction< T, I, L >:
Collaboration diagram for opengm::TruncatedSquaredDifferenceFunction< T, I, L >:Public Types | |
| typedef T | ValueType |
| typedef I | IndexType |
| typedef L | LabelType |
Public Types inherited from opengm::FunctionBase< TruncatedSquaredDifferenceFunction< T, I, L >, T, I, L > | |
| typedef AccessorIterator< FunctionShapeAccessorType, true > | FunctionShapeIteratorType |
Public Member Functions | |
| TruncatedSquaredDifferenceFunction (const LabelType=2, const LabelType=2, const ValueType=ValueType(), const ValueType=ValueType()) | |
| Constructor. More... | |
| size_t | shape (const IndexType) const |
| extension a value table encoding this function would have More... | |
| size_t | size () const |
| number of entries a value table encoding this function would have (used for I/O) More... | |
| size_t | dimension () const |
| template<class ITERATOR > | |
| T | operator() (ITERATOR) const |
| template<class ITERATOR > | |
| TruncatedSquaredDifferenceFunction< T, I, L >::ValueType | operator() (ITERATOR begin) const |
Public Member Functions inherited from opengm::FunctionBase< TruncatedSquaredDifferenceFunction< T, I, L >, T, I, L > | |
| bool | isPotts () const |
| bool | isGeneralizedPotts () const |
| bool | isSubmodular () const |
| bool | isSquaredDifference () const |
| bool | isTruncatedSquaredDifference () const |
| bool | isAbsoluteDifference () const |
| bool | isTruncatedAbsoluteDifference () const |
| bool | isLinearConstraint () const |
| MinMaxFunctor< T > | minMax () const |
| find minimum and maximum of the function in a single sweep More... | |
| ReturnType | min () const |
| ReturnType | max () const |
| ReturnType | sum () const |
| ReturnType | product () const |
| ReturnType | accumulate () const |
| accumulate all values of the function More... | |
| void | forAllValuesInOrder (FUNCTOR &functor) const |
| call a functor for each value of the function (in lexicographical order of the variable indices) More... | |
| void | forAllValuesInSwitchedOrder (FUNCTOR &functor) const |
| void | forAllValuesInAnyOrder (FUNCTOR &functor) const |
| call a functor for each value of the function (in un-specified order) More... | |
| void | forAtLeastAllUniqueValues (FUNCTOR &functor) const |
| call a functor for at least all unique values of the function More... | |
| void | forAllValuesInOrderWithCoordinate (COORDINATE_FUNCTOR &functor) const |
| void | forAllValuesInAnyOrderWithCoordinate (COORDINATE_FUNCTOR &functor) const |
| void | forAtLeastAllUniqueValuesWithCoordinate (COORDINATE_FUNCTOR &functor) const |
| bool | operator== (const TruncatedSquaredDifferenceFunction< T, I, L > &) const |
| FunctionShapeIteratorType | functionShapeBegin () const |
| FunctionShapeIteratorType | functionShapeEnd () const |
| size_t | numberOfParameters () const |
| I | parameterIndex (const size_t paramNumber) const |
truncated squared difference of the labels of two variables
Definition at line 15 of file truncated_squared_difference.hxx.
| typedef I opengm::TruncatedSquaredDifferenceFunction< T, I, L >::IndexType |
Definition at line 19 of file truncated_squared_difference.hxx.
| typedef L opengm::TruncatedSquaredDifferenceFunction< T, I, L >::LabelType |
Definition at line 20 of file truncated_squared_difference.hxx.
| typedef T opengm::TruncatedSquaredDifferenceFunction< T, I, L >::ValueType |
Definition at line 18 of file truncated_squared_difference.hxx.
|
inline |
Constructor.
| numberOfLabels1 | number of labels of the first variable |
| numberOfLabels2 | number of labels of the second variable |
Definition at line 67 of file truncated_squared_difference.hxx.
|
inline |
Definition at line 106 of file truncated_squared_difference.hxx.
| T opengm::TruncatedSquaredDifferenceFunction< T, I, L >::operator() | ( | ITERATOR | ) | const |
|
inline |
Definition at line 83 of file truncated_squared_difference.hxx.
|
inline |
extension a value table encoding this function would have
| i | dimension |
Definition at line 96 of file truncated_squared_difference.hxx.
|
inline |
number of entries a value table encoding this function would have (used for I/O)
Definition at line 113 of file truncated_squared_difference.hxx.
1.8.9.1