|
OpenGM
2.3.x
Discrete Graphical Model Library
|
Factor (with corresponding function and variable indices), independent of a GraphicalModel. More...
#include <graphicalmodel_factor.hxx>
Collaboration diagram for opengm::IndependentFactor< T, I, L >:Public Types | |
| enum | FunctionInformation { NrOfFunctionTypes = 1 } |
| typedef T | ValueType |
| typedef I | IndexType |
| typedef L | LabelType |
| typedef ExplicitFunction< ValueType, IndexType, LabelType > | FunctionType |
| typedef meta::TypeListGenerator< FunctionType >::type | FunctionTypeList |
| typedef const size_t * | ShapeIteratorType |
| typedef std::vector< IndexType >::const_iterator | VariablesIteratorType |
| typedef std::vector< IndexType > | VisContainerType |
Public Member Functions | |
| IndependentFactor () | |
| IndependentFactor (const ValueType) | |
| construct a constant (order 0) independent factor More... | |
| template<class VARIABLE_INDEX_ITERATOR , class SHAPE_ITERATOR > | |
| IndependentFactor (VARIABLE_INDEX_ITERATOR, VARIABLE_INDEX_ITERATOR, SHAPE_ITERATOR, SHAPE_ITERATOR) | |
| construct an independent factor using variable indices and the extension of a value table More... | |
| template<class VARIABLE_INDEX_ITERATOR , class SHAPE_ITERATOR > | |
| IndependentFactor (VARIABLE_INDEX_ITERATOR, VARIABLE_INDEX_ITERATOR, SHAPE_ITERATOR, SHAPE_ITERATOR, const ValueType) | |
| template<class GRAPHICAL_MODEL , class VARIABLE_INDEX_ITERATOR > | |
| IndependentFactor (const GRAPHICAL_MODEL &, VARIABLE_INDEX_ITERATOR, VARIABLE_INDEX_ITERATOR, const ValueType=ValueType()) | |
| IndependentFactor (const IndependentFactor &) | |
| template<class GRAPHICAL_MODEL > | |
| IndependentFactor (const Factor< GRAPHICAL_MODEL > &) | |
| IndependentFactor & | operator= (const IndependentFactor &) |
| template<class GRAPHICAL_MODEL > | |
| IndependentFactor & | operator= (const Factor< GRAPHICAL_MODEL > &) |
| template<class VARIABLE_INDEX_ITERATOR , class SHAPE_ITERATOR > | |
| void | assign (VARIABLE_INDEX_ITERATOR, VARIABLE_INDEX_ITERATOR, SHAPE_ITERATOR, SHAPE_ITERATOR) |
| template<class VARIABLE_INDEX_ITERATOR , class SHAPE_ITERATOR > | |
| void | assign (VARIABLE_INDEX_ITERATOR, VARIABLE_INDEX_ITERATOR, SHAPE_ITERATOR, SHAPE_ITERATOR, const ValueType) |
| template<class GRAPHICAL_MODEL , class VARIABLE_INDEX_ITERATOR > | |
| void | assign (const GRAPHICAL_MODEL &, VARIABLE_INDEX_ITERATOR, VARIABLE_INDEX_ITERATOR) |
| template<class GRAPHICAL_MODEL , class VARIABLE_INDEX_ITERATOR > | |
| void | assign (const GRAPHICAL_MODEL &, VARIABLE_INDEX_ITERATOR, VARIABLE_INDEX_ITERATOR, const ValueType) |
| void | assign (const ValueType) |
| ShapeIteratorType | shapeBegin () const |
| ShapeIteratorType | shapeEnd () const |
| VariablesIteratorType | variableIndicesBegin () const |
| VariablesIteratorType | variableIndicesEnd () const |
| const std::vector< IndexType > & | variableIndexSequence () const |
| template<size_t FUNCTION_TYPE_INDEX> | |
| const FunctionType & | function () const |
| size_t | numberOfVariables () const |
| IndexType | numberOfLabels (const IndexType) const |
| return the number of labels of a specific variable More... | |
| IndexType | shape (const size_t dimIndex) const |
| return the extension of the value table of the of the function in a specific dimension More... | |
| size_t | size () const |
| return the number of entries of the value table of the function More... | |
| IndexType | variableIndex (const size_t) const |
| return the index of the j-th variable More... | |
| template<class ITERATOR > | |
| void | variableIndices (ITERATOR) const |
| template<class ITERATOR > | |
| T | operator() (ITERATOR) const |
| evaluate the function underlying the factor, given labels to be assigned the variables More... | |
| T | operator() (const IndexType) const |
| evaluate an independent factor with 1 variable More... | |
| T | operator() (const IndexType, const IndexType) const |
| evaluate an independent factor with 2 variables More... | |
| T | operator() (const IndexType, const IndexType, const IndexType) const |
| evaluate an independent factor with 3 variables More... | |
| T | operator() (const IndexType, const IndexType, const IndexType, const IndexType) const |
| evaluate an independent factor with 4 variables More... | |
| template<class INDEX_ITERATOR , class STATE_ITERATOR > | |
| void | fixVariables (INDEX_ITERATOR, INDEX_ITERATOR, STATE_ITERATOR) |
| assign specific labels to a specific subset of variables (reduces the order) More... | |
| template<class ITERATOR > | |
| T & | operator() (ITERATOR) |
| evaluate the independent factor More... | |
| T & | operator() (const IndexType) |
| evaluate an independent factor with 1 variables More... | |
| T & | operator() (const IndexType, const IndexType) |
| evaluate an independent factor with 2 variables More... | |
| T & | operator() (const IndexType, const IndexType, const IndexType) |
| evaluate an independent factor with 3 variables More... | |
| T & | operator() (const IndexType, const IndexType, const IndexType, const IndexType) |
| evaluate an independent factor with 4 variables More... | |
| template<class UNARY_OPERATOR_TYPE > | |
| void | operateUnary (UNARY_OPERATOR_TYPE unaryOperator) |
| template<class BINARY_OPERATOR_TYPE > | |
| void | operateBinary (const T value, BINARY_OPERATOR_TYPE binaryOperator) |
| template<class GRAPHICAL_MODEL , class BINARY_OPERATOR_TYPE > | |
| void | operateBinary (const Factor< GRAPHICAL_MODEL > &, BINARY_OPERATOR_TYPE binaryOperator) |
| template<class BINARY_OPERATOR_TYPE > | |
| void | operateBinary (const IndependentFactor< T, I, L > &, BINARY_OPERATOR_TYPE binaryOperator) |
| template<class BINARY_OPERATOR_TYPE > | |
| void | operateBinary (const IndependentFactor< T, I, L > &, const IndependentFactor< T, I, L > &, BINARY_OPERATOR_TYPE binaryOperator) |
| void | subtractOffset () |
| template<class ACCUMULATOR > | |
| void | accumulate (ValueType &, std::vector< LabelType > &) const |
| template<class ACCUMULATOR > | |
| void | accumulate (ValueType &) const |
| template<class ACCUMULATOR , class VariablesIterator > | |
| void | accumulate (VariablesIterator, VariablesIterator, IndependentFactor< T, I, L > &) const |
| template<class ACCUMULATOR , class VariablesIterator > | |
| void | accumulate (VariablesIterator, VariablesIterator) |
| const FunctionType & | function () const |
| bool | isPotts () |
| bool | isGeneralizedPotts () |
| bool | isSubmodular () |
| bool | isSquaredDifference () |
| bool | isTruncatedSquaredDifference () |
| bool | isAbsoluteDifference () |
| bool | isTruncatedAbsoluteDifference () |
| T | min () |
| T | max () |
| T | sum () |
| T | product () |
| template<class GRAPHICAL_MODEL > | |
| IndependentFactor< T, I, L > & | operator= (const Factor< GRAPHICAL_MODEL > &src) |
Friends | |
| template<class ACC , class A , class ViAccIterator > | |
| void | accumulate (A &, ViAccIterator, ViAccIterator) |
Factor (with corresponding function and variable indices), independent of a GraphicalModel.
Definition at line 250 of file graphicalmodel_factor.hxx.
| typedef ExplicitFunction<ValueType,IndexType,LabelType> opengm::IndependentFactor< T, I, L >::FunctionType |
Definition at line 255 of file graphicalmodel_factor.hxx.
| typedef meta::TypeListGenerator<FunctionType>::type opengm::IndependentFactor< T, I, L >::FunctionTypeList |
Definition at line 256 of file graphicalmodel_factor.hxx.
| typedef I opengm::IndependentFactor< T, I, L >::IndexType |
Definition at line 253 of file graphicalmodel_factor.hxx.
| typedef L opengm::IndependentFactor< T, I, L >::LabelType |
Definition at line 254 of file graphicalmodel_factor.hxx.
| typedef const size_t* opengm::IndependentFactor< T, I, L >::ShapeIteratorType |
Definition at line 260 of file graphicalmodel_factor.hxx.
| typedef T opengm::IndependentFactor< T, I, L >::ValueType |
Definition at line 252 of file graphicalmodel_factor.hxx.
| typedef std::vector<IndexType>::const_iterator opengm::IndependentFactor< T, I, L >::VariablesIteratorType |
Definition at line 261 of file graphicalmodel_factor.hxx.
| typedef std::vector<IndexType> opengm::IndependentFactor< T, I, L >::VisContainerType |
Definition at line 263 of file graphicalmodel_factor.hxx.
| enum opengm::IndependentFactor::FunctionInformation |
| Enumerator | |
|---|---|
| NrOfFunctionTypes | |
Definition at line 257 of file graphicalmodel_factor.hxx.
|
inline |
Definition at line 940 of file graphicalmodel_factor.hxx.
|
inline |
construct a constant (order 0) independent factor
Definition at line 948 of file graphicalmodel_factor.hxx.
|
inline |
construct an independent factor using variable indices and the extension of a value table
| beginVi | iterator to the beginning of a sequence of variable indices |
| endVi | iterator to the end of a sequence of variable indices |
| shapeBegin | iterator to the beginning of a sequence of extensions |
| shapeBegin | iterator to the end of a sequence of extensions |
Definition at line 963 of file graphicalmodel_factor.hxx.
|
inline |
Definition at line 979 of file graphicalmodel_factor.hxx.
|
inline |
Definition at line 1105 of file graphicalmodel_factor.hxx.
|
inline |
Definition at line 1124 of file graphicalmodel_factor.hxx.
|
inline |
Definition at line 1141 of file graphicalmodel_factor.hxx.
Here is the call graph for this function:
|
inline |
Definition at line 1460 of file graphicalmodel_factor.hxx.
|
inline |
Definition at line 1471 of file graphicalmodel_factor.hxx.
|
inline |
Definition at line 1481 of file graphicalmodel_factor.hxx.
|
inline |
Definition at line 1492 of file graphicalmodel_factor.hxx.
|
inline |
Definition at line 996 of file graphicalmodel_factor.hxx.
|
inline |
Definition at line 1012 of file graphicalmodel_factor.hxx.
|
inline |
Definition at line 1065 of file graphicalmodel_factor.hxx.
|
inline |
Definition at line 1084 of file graphicalmodel_factor.hxx.
|
inline |
Definition at line 1053 of file graphicalmodel_factor.hxx.
| void opengm::IndependentFactor< T, I, L >::fixVariables | ( | INDEX_ITERATOR | beginIndex, |
| INDEX_ITERATOR | endIndex, | ||
| STATE_ITERATOR | beginLabels | ||
| ) |
assign specific labels to a specific subset of variables (reduces the order)
| beginIndex | iterator to the beginning of a sequence of variable indices |
| endIndex | iterator to the end of a sequence of variable indices |
| beginLabels | iterator to the beginning of a sequence of labels |
Definition at line 1574 of file graphicalmodel_factor.hxx.
Here is the call graph for this function:
|
inline |
Definition at line 1045 of file graphicalmodel_factor.hxx.
|
inline |
Definition at line 1037 of file graphicalmodel_factor.hxx.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
return the number of labels of a specific variable
Definition at line 1224 of file graphicalmodel_factor.hxx.
|
inline |
Definition at line 1215 of file graphicalmodel_factor.hxx.
|
inline |
Definition at line 1408 of file graphicalmodel_factor.hxx.
|
inline |
Definition at line 1426 of file graphicalmodel_factor.hxx.
|
inline |
Definition at line 1437 of file graphicalmodel_factor.hxx.
|
inline |
Definition at line 1448 of file graphicalmodel_factor.hxx.
|
inline |
Definition at line 1391 of file graphicalmodel_factor.hxx.
|
inline |
evaluate the function underlying the factor, given labels to be assigned the variables
| begin | iterator to the beginning of a sequence of labels |
Definition at line 1314 of file graphicalmodel_factor.hxx.
|
inline |
evaluate an independent factor with 1 variable
Definition at line 1338 of file graphicalmodel_factor.hxx.
|
inline |
evaluate an independent factor with 2 variables
Definition at line 1349 of file graphicalmodel_factor.hxx.
|
inline |
evaluate an independent factor with 3 variables
Definition at line 1362 of file graphicalmodel_factor.hxx.
|
inline |
evaluate an independent factor with 4 variables
Definition at line 1376 of file graphicalmodel_factor.hxx.
|
inline |
evaluate the independent factor
| begin | iterator to the beginning of a sequence of labels |
Definition at line 1504 of file graphicalmodel_factor.hxx.
|
inline |
evaluate an independent factor with 1 variables
Definition at line 1513 of file graphicalmodel_factor.hxx.
|
inline |
evaluate an independent factor with 2 variables
Definition at line 1522 of file graphicalmodel_factor.hxx.
|
inline |
evaluate an independent factor with 3 variables
Definition at line 1532 of file graphicalmodel_factor.hxx.
|
inline |
evaluate an independent factor with 4 variables
Definition at line 1543 of file graphicalmodel_factor.hxx.
|
inline |
Definition at line 1171 of file graphicalmodel_factor.hxx.
| IndependentFactor& opengm::IndependentFactor< T, I, L >::operator= | ( | const Factor< GRAPHICAL_MODEL > & | ) |
| IndependentFactor<T, I, L>& opengm::IndependentFactor< T, I, L >::operator= | ( | const Factor< GRAPHICAL_MODEL > & | src | ) |
Definition at line 1186 of file graphicalmodel_factor.hxx.
Here is the call graph for this function:
|
inline |
|
inline |
return the extension of the value table of the of the function in a specific dimension
Definition at line 1244 of file graphicalmodel_factor.hxx.
|
inline |
Definition at line 1256 of file graphicalmodel_factor.hxx.
|
inline |
Definition at line 1263 of file graphicalmodel_factor.hxx.
|
inline |
return the number of entries of the value table of the function
Definition at line 1235 of file graphicalmodel_factor.hxx.
|
inline |
Definition at line 1296 of file graphicalmodel_factor.hxx.
|
inline |
|
inline |
return the index of the j-th variable
Definition at line 1287 of file graphicalmodel_factor.hxx.
|
inline |
Definition at line 1329 of file graphicalmodel_factor.hxx.
|
inline |
Definition at line 1557 of file graphicalmodel_factor.hxx.
|
inline |
Definition at line 1270 of file graphicalmodel_factor.hxx.
|
inline |
Definition at line 1277 of file graphicalmodel_factor.hxx.
|
friend |
1.8.9.1