squared difference of the labels of two variables More...
#include <squared_difference.hxx>
Public Types | |
typedef T | ValueType |
typedef I | IndexType |
typedef L | LabelType |
Public Member Functions | |
SquaredDifferenceFunction (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 |
T | weight () const |
template<class ITERATOR > | |
T | operator() (ITERATOR) const |
squared difference of the labels of two variables
Definition at line 15 of file squared_difference.hxx.
typedef I opengm::SquaredDifferenceFunction< T, I, L >::IndexType |
Definition at line 20 of file squared_difference.hxx.
typedef L opengm::SquaredDifferenceFunction< T, I, L >::LabelType |
Definition at line 21 of file squared_difference.hxx.
typedef T opengm::SquaredDifferenceFunction< T, I, L >::ValueType |
Definition at line 19 of file squared_difference.hxx.
opengm::SquaredDifferenceFunction< T, I, L >::SquaredDifferenceFunction | ( | const LabelType | numberOfStates1 = 2 , |
|
const LabelType | numberOfStates2 = 2 , |
|||
const ValueType | weight = 1 | |||
) | [inline] |
constructor
numberOfLabels1 | number of labels of the first variable | |
numberOfLabels2 | number of labels of the second variable | |
weight | weight |
Definition at line 66 of file squared_difference.hxx.
size_t opengm::SquaredDifferenceFunction< T, I, L >::dimension | ( | ) | const [inline] |
Definition at line 109 of file squared_difference.hxx.
T opengm::SquaredDifferenceFunction< T, I, L >::operator() | ( | ITERATOR | begin | ) | const [inline] |
Definition at line 80 of file squared_difference.hxx.
size_t opengm::SquaredDifferenceFunction< T, I, L >::shape | ( | const IndexType | i | ) | const [inline] |
extension a value table encoding this function would have
i | dimension |
Definition at line 93 of file squared_difference.hxx.
size_t opengm::SquaredDifferenceFunction< T, I, L >::size | ( | ) | const [inline] |
number of entries a value table encoding this function would have (used for I/O)
Definition at line 116 of file squared_difference.hxx.
T opengm::SquaredDifferenceFunction< T, I, L >::weight | ( | ) | const [inline] |
Definition at line 102 of file squared_difference.hxx.