|
OpenGM
2.3.x
Discrete Graphical Model Library
|
#include <lunary.hxx>
Inheritance diagram for opengm::functions::learnable::LUnary< T, I, L >:
Collaboration diagram for opengm::functions::learnable::LUnary< T, I, L >:Public Types | |
| typedef T | ValueType |
| typedef T | V |
| typedef L | LabelType |
| typedef I | IndexType |
Public Types inherited from opengm::FunctionBase< opengm::functions::learnable::LUnary< T, I, L >, T, I, L > | |
| typedef AccessorIterator< FunctionShapeAccessorType, true > | FunctionShapeIteratorType |
Public Member Functions | |
| LUnary () | |
| LUnary (const opengm::learning::Weights< T > &weights, std::vector< FeaturesAndIndices< T, I > > featuresAndIndicesPerLabel) | |
| LUnary (const opengm::learning::Weights< T > &weights, const LabelType numberOfLabels, marray::Marray< size_t > weightIds, marray::Marray< ValueType > features, const bool makeFirstEntryConst) | |
| L | shape (const size_t) const |
| size_t | size () const |
| size_t | dimension () const |
| template<class ITERATOR > | |
| T | operator() (ITERATOR) const |
| void | setWeights (const opengm::learning::Weights< T > &weights) const |
| size_t | numberOfWeights () const |
| I | weightIndex (const size_t weightNumber) const |
| template<class ITERATOR > | |
| T | weightGradient (size_t, ITERATOR) const |
Public Member Functions inherited from opengm::FunctionBase< opengm::functions::learnable::LUnary< T, I, L >, T, I, L > | |
| 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 opengm::functions::learnable::LUnary< T, I, L > &) const |
| FunctionShapeIteratorType | functionShapeBegin () const |
| FunctionShapeIteratorType | functionShapeEnd () const |
| size_t | numberOfWeights () const |
| I | weightIndex (const size_t weightNumber) const |
| void | setWeights (const opengm::learning::Weights< T > &) const |
| T | weightGradient (size_t, ITERATOR) const |
Protected Member Functions | |
| size_t | numWeightsForL (const LabelType l) const |
| size_t | weightIdOffset (const LabelType l) const |
| size_t | featureOffset (const LabelType l) const |
Protected Attributes | |
| const opengm::learning::Weights< T > * | weights_ |
| IndexType | numberOfLabels_ |
| std::vector< IndexType > | offsets_ |
| std::vector< size_t > | weightIds_ |
| std::vector< ValueType > | features_ |
Definition at line 32 of file lunary.hxx.
| typedef I opengm::functions::learnable::LUnary< T, I, L >::IndexType |
Definition at line 39 of file lunary.hxx.
| typedef L opengm::functions::learnable::LUnary< T, I, L >::LabelType |
Definition at line 38 of file lunary.hxx.
| typedef T opengm::functions::learnable::LUnary< T, I, L >::V |
Definition at line 37 of file lunary.hxx.
| typedef T opengm::functions::learnable::LUnary< T, I, L >::ValueType |
Definition at line 36 of file lunary.hxx.
|
inline |
|
inline |
| opengm::functions::learnable::LUnary< T, I, L >::LUnary | ( | const opengm::learning::Weights< T > & | weights, |
| const LabelType | numberOfLabels, | ||
| marray::Marray< size_t > | weightIds, | ||
| marray::Marray< ValueType > | features, | ||
| const bool | makeFirstEntryConst | ||
| ) |
|
inline |
Definition at line 311 of file lunary.hxx.
|
inlineprotected |
Definition at line 98 of file lunary.hxx.
|
inline |
Definition at line 76 of file lunary.hxx.
|
inlineprotected |
Definition at line 92 of file lunary.hxx.
|
inline |
|
inline |
Definition at line 72 of file lunary.hxx.
|
inline |
|
inline |
Definition at line 317 of file lunary.hxx.
|
inline |
|
inlineprotected |
Definition at line 95 of file lunary.hxx.
|
inline |
Definition at line 80 of file lunary.hxx.
|
protected |
Definition at line 107 of file lunary.hxx.
|
protected |
Definition at line 104 of file lunary.hxx.
|
protected |
Definition at line 105 of file lunary.hxx.
|
protected |
Definition at line 106 of file lunary.hxx.
|
mutableprotected |
Definition at line 102 of file lunary.hxx.
1.8.12