Absolute difference between two labels. More...
#include <absolute_difference.hxx>
Public Types | |
typedef T | ValueType |
typedef I | IndexType |
typedef L | LabelType |
Public Member Functions | |
AbsoluteDifferenceFunction (const LabelType=2, const LabelType=2, const ValueType=1) | |
size_t | shape (const IndexType) const |
extension a value table encoding this function would have | |
size_t | size () const |
number of entries a value table encoding this function would have (used for I/O) | |
size_t | dimension () const |
template<class ITERATOR > | |
ValueType | operator() (ITERATOR) const |
Absolute difference between two labels.
Definition at line 15 of file absolute_difference.hxx.
typedef I opengm::AbsoluteDifferenceFunction< T, I, L >::IndexType |
Definition at line 20 of file absolute_difference.hxx.
typedef L opengm::AbsoluteDifferenceFunction< T, I, L >::LabelType |
Definition at line 21 of file absolute_difference.hxx.
typedef T opengm::AbsoluteDifferenceFunction< T, I, L >::ValueType |
Definition at line 19 of file absolute_difference.hxx.
opengm::AbsoluteDifferenceFunction< T, I, L >::AbsoluteDifferenceFunction | ( | const LabelType | numberOfLabels1 = 2 , |
|
const LabelType | numberOfLabels2 = 2 , |
|||
const ValueType | scale = 1 | |||
) | [inline] |
Constructor
numberOfLabels1 | number of labels of the first variable | |
numberOfLabels2 | number of labels of the second variable |
Definition at line 68 of file absolute_difference.hxx.
size_t opengm::AbsoluteDifferenceFunction< T, I, L >::dimension | ( | ) | const [inline] |
Definition at line 106 of file absolute_difference.hxx.
AbsoluteDifferenceFunction< T, I, L >::ValueType opengm::AbsoluteDifferenceFunction< T, I, L >::operator() | ( | ITERATOR | begin | ) | const [inline] |
size_t opengm::AbsoluteDifferenceFunction< T, I, L >::shape | ( | const IndexType | i | ) | const [inline] |
extension a value table encoding this function would have
i | dimension |
Definition at line 96 of file absolute_difference.hxx.
size_t opengm::AbsoluteDifferenceFunction< T, I, L >::size | ( | ) | const [inline] |
number of entries a value table encoding this function would have (used for I/O)
Definition at line 113 of file absolute_difference.hxx.