|
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 277 of file graphicalmodel_factor.hxx.
| typedef ExplicitFunction<ValueType,IndexType,LabelType> opengm::IndependentFactor< T, I, L >::FunctionType |
Definition at line 282 of file graphicalmodel_factor.hxx.
| typedef meta::TypeListGenerator<FunctionType>::type opengm::IndependentFactor< T, I, L >::FunctionTypeList |
Definition at line 283 of file graphicalmodel_factor.hxx.
| typedef I opengm::IndependentFactor< T, I, L >::IndexType |
Definition at line 280 of file graphicalmodel_factor.hxx.
| typedef L opengm::IndependentFactor< T, I, L >::LabelType |
Definition at line 281 of file graphicalmodel_factor.hxx.
| typedef const size_t* opengm::IndependentFactor< T, I, L >::ShapeIteratorType |
Definition at line 287 of file graphicalmodel_factor.hxx.
| typedef T opengm::IndependentFactor< T, I, L >::ValueType |
Definition at line 279 of file graphicalmodel_factor.hxx.
| typedef std::vector<IndexType>::const_iterator opengm::IndependentFactor< T, I, L >::VariablesIteratorType |
Definition at line 288 of file graphicalmodel_factor.hxx.
| typedef std::vector<IndexType> opengm::IndependentFactor< T, I, L >::VisContainerType |
Definition at line 290 of file graphicalmodel_factor.hxx.
| enum opengm::IndependentFactor::FunctionInformation |
| Enumerator | |
|---|---|
| NrOfFunctionTypes | |
Definition at line 284 of file graphicalmodel_factor.hxx.
|
inline |
Definition at line 967 of file graphicalmodel_factor.hxx.
Here is the caller graph for this function:
|
inline |
construct a constant (order 0) independent factor
Definition at line 975 of file graphicalmodel_factor.hxx.
Here is the call graph for this function:
|
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 990 of file graphicalmodel_factor.hxx.
Here is the call graph for this function:
|
inline |
Definition at line 1006 of file graphicalmodel_factor.hxx.
Here is the call graph for this function:
|
inline |
Definition at line 1132 of file graphicalmodel_factor.hxx.
Here is the call graph for this function:
|
inline |
Definition at line 1151 of file graphicalmodel_factor.hxx.
Here is the call graph for this function:
|
inline |
Definition at line 1168 of file graphicalmodel_factor.hxx.
Here is the call graph for this function:
|
inline |
Definition at line 1487 of file graphicalmodel_factor.hxx.
Here is the caller graph for this function:
|
inline |
Definition at line 1498 of file graphicalmodel_factor.hxx.
Here is the call graph for this function:
|
inline |
Definition at line 1508 of file graphicalmodel_factor.hxx.
|
inline |
Definition at line 1519 of file graphicalmodel_factor.hxx.
|
inline |
Definition at line 1023 of file graphicalmodel_factor.hxx.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 1039 of file graphicalmodel_factor.hxx.
Here is the call graph for this function:
|
inline |
Definition at line 1092 of file graphicalmodel_factor.hxx.
Here is the call graph for this function:
|
inline |
Definition at line 1111 of file graphicalmodel_factor.hxx.
Here is the call graph for this function:
|
inline |
Definition at line 1080 of file graphicalmodel_factor.hxx.
Here is the call graph for this function:| 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 1601 of file graphicalmodel_factor.hxx.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 1072 of file graphicalmodel_factor.hxx.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 1064 of file graphicalmodel_factor.hxx.
|
inline |
Definition at line 378 of file graphicalmodel_factor.hxx.
|
inline |
Definition at line 370 of file graphicalmodel_factor.hxx.
|
inline |
Definition at line 368 of file graphicalmodel_factor.hxx.
|
inline |
Definition at line 374 of file graphicalmodel_factor.hxx.
|
inline |
Definition at line 372 of file graphicalmodel_factor.hxx.
|
inline |
Definition at line 380 of file graphicalmodel_factor.hxx.
|
inline |
Definition at line 376 of file graphicalmodel_factor.hxx.
|
inline |
Definition at line 384 of file graphicalmodel_factor.hxx.
|
inline |
Definition at line 383 of file graphicalmodel_factor.hxx.
|
inline |
return the number of labels of a specific variable
Definition at line 1251 of file graphicalmodel_factor.hxx.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 1242 of file graphicalmodel_factor.hxx.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 1435 of file graphicalmodel_factor.hxx.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 1453 of file graphicalmodel_factor.hxx.
Here is the call graph for this function:
|
inline |
Definition at line 1464 of file graphicalmodel_factor.hxx.
Here is the call graph for this function:
|
inline |
Definition at line 1475 of file graphicalmodel_factor.hxx.
Here is the call graph for this function:
|
inline |
Definition at line 1418 of file graphicalmodel_factor.hxx.
Here is the call graph for this function:
Here is the caller graph for this function:
|
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 1341 of file graphicalmodel_factor.hxx.
Here is the call graph for this function:
|
inline |
evaluate an independent factor with 1 variable
Definition at line 1365 of file graphicalmodel_factor.hxx.
|
inline |
evaluate an independent factor with 2 variables
Definition at line 1376 of file graphicalmodel_factor.hxx.
|
inline |
evaluate an independent factor with 3 variables
Definition at line 1389 of file graphicalmodel_factor.hxx.
|
inline |
evaluate an independent factor with 4 variables
Definition at line 1403 of file graphicalmodel_factor.hxx.
Here is the call graph for this function:
|
inline |
evaluate the independent factor
| begin | iterator to the beginning of a sequence of labels |
Definition at line 1531 of file graphicalmodel_factor.hxx.
|
inline |
evaluate an independent factor with 1 variables
Definition at line 1540 of file graphicalmodel_factor.hxx.
|
inline |
evaluate an independent factor with 2 variables
Definition at line 1549 of file graphicalmodel_factor.hxx.
|
inline |
evaluate an independent factor with 3 variables
Definition at line 1559 of file graphicalmodel_factor.hxx.
|
inline |
evaluate an independent factor with 4 variables
Definition at line 1570 of file graphicalmodel_factor.hxx.
Here is the call graph for this function:
|
inline |
Definition at line 1198 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 1213 of file graphicalmodel_factor.hxx.
Here is the call graph for this function:
|
inline |
Definition at line 386 of file graphicalmodel_factor.hxx.
|
inline |
return the extension of the value table of the of the function in a specific dimension
Definition at line 1271 of file graphicalmodel_factor.hxx.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 1283 of file graphicalmodel_factor.hxx.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 1290 of file graphicalmodel_factor.hxx.
Here is the call graph for this function:
|
inline |
return the number of entries of the value table of the function
Definition at line 1262 of file graphicalmodel_factor.hxx.
Here is the call graph for this function:
|
inline |
Definition at line 1323 of file graphicalmodel_factor.hxx.
|
inline |
Definition at line 385 of file graphicalmodel_factor.hxx.
|
inline |
return the index of the j-th variable
Definition at line 1314 of file graphicalmodel_factor.hxx.
Here is the caller graph for this function:
|
inline |
Definition at line 1356 of file graphicalmodel_factor.hxx.
Here is the caller graph for this function:
|
inline |
Definition at line 1584 of file graphicalmodel_factor.hxx.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 1297 of file graphicalmodel_factor.hxx.
|
inline |
Definition at line 1304 of file graphicalmodel_factor.hxx.
Here is the call graph for this function:
|
friend |
1.8.12