Potts function for two variables. More...
#include <potts.hxx>
Public Types | |
typedef T | ValueType |
typedef L | LabelType |
typedef I | IndexType |
Public Member Functions | |
PottsFunction (const LabelType=2, const LabelType=2, const ValueType=ValueType(), const ValueType=ValueType()) | |
LabelType | shape (const size_t) const |
size_t | size () const |
size_t | dimension () const |
template<class ITERATOR > | |
ValueType | operator() (ITERATOR) const |
bool | operator== (const PottsFunction &) const |
ValueType | valueEqual () const |
ValueType | valueNotEqual () const |
IndexType | numberOfParameters () const |
ValueType | parameter (const size_t index) const |
ValueType & | parameter (const size_t index) |
bool | isPotts () const |
bool | isGeneralizedPotts () const |
ValueType | min () const |
ValueType | max () const |
ValueType | sum () const |
ValueType | product () const |
MinMaxFunctor< ValueType > | minMax () const |
find minimum and maximum of the function in a single sweep |
Potts function for two variables.
grid_potts.cxx, markov-chain.cxx, and one_to_one_matching.cxx.
Definition at line 19 of file potts.hxx.
typedef I opengm::PottsFunction< T, I, L >::IndexType |
typedef L opengm::PottsFunction< T, I, L >::LabelType |
typedef T opengm::PottsFunction< T, I, L >::ValueType |
opengm::PottsFunction< T, I, L >::PottsFunction | ( | const | LabelType = 2 , |
|
const | LabelType = 2 , |
|||
const | ValueType = ValueType() , |
|||
const | ValueType = ValueType() | |||
) | [inline] |
constructor
numberOfLabels1 | number of labels of the first variable | |
numberOfLabels2 | number of labels of the second variable | |
valueEqual | value if the labels of the two variables are equal | |
valueNotEqual | value if the labels of the two variables are not equal |
size_t opengm::PottsFunction< T, I, L >::dimension | ( | ) | const [inline] |
bool opengm::PottsFunction< T, I, L >::isGeneralizedPotts | ( | ) | const [inline] |
Reimplemented from opengm::FunctionBase< PottsFunction< T, I, L >, T, size_t, size_t >.
bool opengm::PottsFunction< T, I, L >::isPotts | ( | ) | const [inline] |
Reimplemented from opengm::FunctionBase< PottsFunction< T, I, L >, T, size_t, size_t >.
PottsFunction< T, I, L >::ValueType opengm::PottsFunction< T, I, L >::max | ( | ) | const [inline] |
Reimplemented from opengm::FunctionBase< PottsFunction< T, I, L >, T, size_t, size_t >.
PottsFunction< T, I, L >::ValueType opengm::PottsFunction< T, I, L >::min | ( | ) | const [inline] |
Reimplemented from opengm::FunctionBase< PottsFunction< T, I, L >, T, size_t, size_t >.
Definition at line 255 of file potts.hxx.
MinMaxFunctor< typename PottsFunction< T, I, L >::ValueType > opengm::PottsFunction< T, I, L >::minMax | ( | ) | const [inline] |
find minimum and maximum of the function in a single sweep
Reimplemented from opengm::FunctionBase< PottsFunction< T, I, L >, T, size_t, size_t >.
PottsFunction< T, I, L >::IndexType opengm::PottsFunction< T, I, L >::numberOfParameters | ( | ) | const [inline] |
T opengm::PottsFunction< T, I, L >::operator() | ( | ITERATOR | begin | ) | const [inline] |
bool opengm::PottsFunction< T, I, L >::operator== | ( | const PottsFunction< T, I, L > & | fb | ) | const [inline] |
Reimplemented from opengm::FunctionBase< PottsFunction< T, I, L >, T, size_t, size_t >.
PottsFunction< T, I, L >::ValueType & opengm::PottsFunction< T, I, L >::parameter | ( | const size_t | index | ) | [inline] |
PottsFunction< T, I, L >::ValueType opengm::PottsFunction< T, I, L >::parameter | ( | const size_t | index | ) | const [inline] |
PottsFunction< T, I, L >::ValueType opengm::PottsFunction< T, I, L >::product | ( | ) | const [inline] |
Reimplemented from opengm::FunctionBase< PottsFunction< T, I, L >, T, size_t, size_t >.
Definition at line 278 of file potts.hxx.
L opengm::PottsFunction< T, I, L >::shape | ( | const size_t | i | ) | const [inline] |
size_t opengm::PottsFunction< T, I, L >::size | ( | ) | const [inline] |
PottsFunction< T, I, L >::ValueType opengm::PottsFunction< T, I, L >::sum | ( | ) | const [inline] |
Reimplemented from opengm::FunctionBase< PottsFunction< T, I, L >, T, size_t, size_t >.
Definition at line 269 of file potts.hxx.
T opengm::PottsFunction< T, I, L >::valueEqual | ( | ) | const [inline] |
T opengm::PottsFunction< T, I, L >::valueNotEqual | ( | ) | const [inline] |