opengm::AbsoluteDifferenceFunction< T, I, L > Class Template Reference
[Function Types]

Absolute difference between two labels. More...

#include <absolute_difference.hxx>

Inheritance diagram for opengm::AbsoluteDifferenceFunction< T, I, L >:
Inheritance graph
[legend]
Collaboration diagram for opengm::AbsoluteDifferenceFunction< T, I, L >:
Collaboration graph
[legend]

List of all members.

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

Detailed Description

template<class T, class I = size_t, class L = size_t>
class opengm::AbsoluteDifferenceFunction< T, I, L >

Absolute difference between two labels.

Definition at line 15 of file absolute_difference.hxx.


Member Typedef Documentation

template<class T, class I = size_t, class L = size_t>
typedef I opengm::AbsoluteDifferenceFunction< T, I, L >::IndexType

Definition at line 20 of file absolute_difference.hxx.

template<class T, class I = size_t, class L = size_t>
typedef L opengm::AbsoluteDifferenceFunction< T, I, L >::LabelType

Definition at line 21 of file absolute_difference.hxx.

template<class T, class I = size_t, class L = size_t>
typedef T opengm::AbsoluteDifferenceFunction< T, I, L >::ValueType

Definition at line 19 of file absolute_difference.hxx.


Constructor & Destructor Documentation

template<class T , class I , class L >
opengm::AbsoluteDifferenceFunction< T, I, L >::AbsoluteDifferenceFunction ( const LabelType  numberOfLabels1 = 2,
const LabelType  numberOfLabels2 = 2,
const ValueType  scale = 1 
) [inline]

Constructor

Parameters:
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.


Member Function Documentation

template<class T , class I , class L >
size_t opengm::AbsoluteDifferenceFunction< T, I, L >::dimension (  )  const [inline]

Definition at line 106 of file absolute_difference.hxx.

template<class T , class I , class L >
template<class ITERATOR >
AbsoluteDifferenceFunction< T, I, L >::ValueType opengm::AbsoluteDifferenceFunction< T, I, L >::operator() ( ITERATOR  begin  )  const [inline]

Definition at line 82 of file absolute_difference.hxx.

Here is the call graph for this function:

template<class T , class I , class L >
size_t opengm::AbsoluteDifferenceFunction< T, I, L >::shape ( const IndexType  i  )  const [inline]

extension a value table encoding this function would have

Parameters:
i dimension

Definition at line 96 of file absolute_difference.hxx.

template<class T , class I , class L >
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.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Mon Jun 17 16:31:10 2013 for OpenGM by  doxygen 1.6.3