|
OpenGM
2.3.x
Discrete Graphical Model Library
|
Field of Expert function. More...
#include <fieldofexperts.hxx>
Inheritance diagram for opengm::FoEFunction< T, I, L >:
Collaboration diagram for opengm::FoEFunction< T, I, L >:Public Types | |
| typedef T | ValueType |
| typedef L | LabelType |
| typedef I | IndexType |
Public Types inherited from opengm::FunctionBase< FoEFunction< T, I, L >, T, size_t, size_t > | |
| typedef AccessorIterator< FunctionShapeAccessorType, true > | FunctionShapeIteratorType |
Public Member Functions | |
| FoEFunction (const std::vector< T > &, const std::vector< T > &, const L) | |
| constructor More... | |
| template<class IT > | |
| FoEFunction (IT, IT, const L, const I, const size_t) | |
| constructor More... | |
| FoEFunction () | |
| constructor for demo function More... | |
| LabelType | shape (const size_t) const |
| size_t | size () const |
| size_t | dimension () const |
| template<class ITERATOR > | |
| ValueType | operator() (ITERATOR) const |
| void | setDefault () |
| template<class ITERATOR > | |
| T | operator() (ITERATOR begin) const |
Public Member Functions inherited from opengm::FunctionBase< FoEFunction< T, I, L >, T, size_t, size_t > | |
| 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 FoEFunction< T, I, L > &) const |
| FunctionShapeIteratorType | functionShapeBegin () const |
| FunctionShapeIteratorType | functionShapeEnd () const |
| size_t | numberOfParameters () const |
| size_t | parameterIndex (const size_t paramNumber) const |
Protected Attributes | |
| std::vector< T > | experts_ |
| std::vector< T > | alphas_ |
| L | numLabels_ |
| I | order_ |
| std::vector< T > | l_ |
Field of Expert function.
Definition at line 20 of file fieldofexperts.hxx.
| typedef I opengm::FoEFunction< T, I, L >::IndexType |
Definition at line 26 of file fieldofexperts.hxx.
| typedef L opengm::FoEFunction< T, I, L >::LabelType |
Definition at line 25 of file fieldofexperts.hxx.
| typedef T opengm::FoEFunction< T, I, L >::ValueType |
Definition at line 24 of file fieldofexperts.hxx.
|
inline |
constructor
| e | Expert-matrix (dim = numExp x order) |
| a | Vector weighting the experts |
| numL | NumberOfLabels |
Definition at line 120 of file fieldofexperts.hxx.
|
inline |
constructor
| e | Expert-iterator (dim = numExp x order) |
| a | Iterator weighting the experts |
| numL | NumberOfLabels |
Definition at line 137 of file fieldofexperts.hxx.
|
inline |
constructor for demo function
Definition at line 77 of file fieldofexperts.hxx.
|
inline |
Definition at line 187 of file fieldofexperts.hxx.
| ValueType opengm::FoEFunction< T, I, L >::operator() | ( | ITERATOR | ) | const |
|
inline |
Definition at line 154 of file fieldofexperts.hxx.
|
inline |
Definition at line 89 of file fieldofexperts.hxx.
|
inline |
Definition at line 178 of file fieldofexperts.hxx.
|
inline |
Definition at line 193 of file fieldofexperts.hxx.
|
protected |
Definition at line 41 of file fieldofexperts.hxx.
|
protected |
Definition at line 40 of file fieldofexperts.hxx.
|
mutableprotected |
Definition at line 44 of file fieldofexperts.hxx.
|
protected |
Definition at line 42 of file fieldofexperts.hxx.
|
protected |
Definition at line 43 of file fieldofexperts.hxx.
1.8.9.1