OpenGM  2.3.x
Discrete Graphical Model Library
Public Member Functions | List of all members
opengm::learning::WeightConstraints< T > Class Template Reference

#include <weights.hxx>

+ Collaboration diagram for opengm::learning::WeightConstraints< T >:

Public Member Functions

 WeightConstraints (const size_t nWeights=0)
 
template<class ITER_LB , class ITER_UB >
 WeightConstraints (ITER_LB lbBegin, ITER_LB lbEnd, ITER_UB ubBegin)
 
size_t numberOfConstraints () const
 
weightLowerBound (const size_t wi) const
 
weightUpperBound (const size_t wi) const
 
const std::vector< T > & weightLowerBounds () const
 
const std::vector< T > & weightUpperBounds () const
 
size_t constraintSize (const size_t ci) const
 
constraintLowerBound (const size_t ci) const
 
constraintUpperBound (const size_t ci) const
 
const std::vector< size_t > & constraintSizes () const
 
const std::vector< T > & constraintLowerBounds () const
 
const std::vector< T > & constraintUpperBounds () const
 
template<class ITER_LB >
void setLowerBounds (ITER_LB lbBegin, ITER_LB lbEnd)
 
template<class ITER_UB >
void setUpperBounds (ITER_UB ubBegin, ITER_UB ubEnd)
 
template<class ITER_INDICES , class ITER_COEFF >
void addConstraint (ITER_INDICES indicesBegin, ITER_INDICES indicesEnd, ITER_COEFF coeffBegin, const T lowerBound, const T upperBound)
 

Detailed Description

template<class T>
class opengm::learning::WeightConstraints< T >

Definition at line 157 of file weights.hxx.

Constructor & Destructor Documentation

§ WeightConstraints() [1/2]

template<class T >
opengm::learning::WeightConstraints< T >::WeightConstraints ( const size_t  nWeights = 0)
inline

Definition at line 160 of file weights.hxx.

§ WeightConstraints() [2/2]

template<class T >
template<class ITER_LB , class ITER_UB >
opengm::learning::WeightConstraints< T >::WeightConstraints ( ITER_LB  lbBegin,
ITER_LB  lbEnd,
ITER_UB  ubBegin 
)
inline

Definition at line 173 of file weights.hxx.

Member Function Documentation

§ addConstraint()

template<class T >
template<class ITER_INDICES , class ITER_COEFF >
void opengm::learning::WeightConstraints< T >::addConstraint ( ITER_INDICES  indicesBegin,
ITER_INDICES  indicesEnd,
ITER_COEFF  coeffBegin,
const T  lowerBound,
const T  upperBound 
)
inline

Definition at line 238 of file weights.hxx.

§ constraintLowerBound()

template<class T >
T opengm::learning::WeightConstraints< T >::constraintLowerBound ( const size_t  ci) const
inline

Definition at line 209 of file weights.hxx.

§ constraintLowerBounds()

template<class T >
const std::vector<T>& opengm::learning::WeightConstraints< T >::constraintLowerBounds ( ) const
inline

Definition at line 219 of file weights.hxx.

§ constraintSize()

template<class T >
size_t opengm::learning::WeightConstraints< T >::constraintSize ( const size_t  ci) const
inline

Definition at line 206 of file weights.hxx.

§ constraintSizes()

template<class T >
const std::vector<size_t>& opengm::learning::WeightConstraints< T >::constraintSizes ( ) const
inline

Definition at line 216 of file weights.hxx.

§ constraintUpperBound()

template<class T >
T opengm::learning::WeightConstraints< T >::constraintUpperBound ( const size_t  ci) const
inline

Definition at line 212 of file weights.hxx.

§ constraintUpperBounds()

template<class T >
const std::vector<T>& opengm::learning::WeightConstraints< T >::constraintUpperBounds ( ) const
inline

Definition at line 222 of file weights.hxx.

§ numberOfConstraints()

template<class T >
size_t opengm::learning::WeightConstraints< T >::numberOfConstraints ( ) const
inline

Definition at line 187 of file weights.hxx.

§ setLowerBounds()

template<class T >
template<class ITER_LB >
void opengm::learning::WeightConstraints< T >::setLowerBounds ( ITER_LB  lbBegin,
ITER_LB  lbEnd 
)
inline

Definition at line 228 of file weights.hxx.

§ setUpperBounds()

template<class T >
template<class ITER_UB >
void opengm::learning::WeightConstraints< T >::setUpperBounds ( ITER_UB  ubBegin,
ITER_UB  ubEnd 
)
inline

Definition at line 233 of file weights.hxx.

§ weightLowerBound()

template<class T >
T opengm::learning::WeightConstraints< T >::weightLowerBound ( const size_t  wi) const
inline

Definition at line 191 of file weights.hxx.

§ weightLowerBounds()

template<class T >
const std::vector<T>& opengm::learning::WeightConstraints< T >::weightLowerBounds ( ) const
inline

Definition at line 198 of file weights.hxx.

§ weightUpperBound()

template<class T >
T opengm::learning::WeightConstraints< T >::weightUpperBound ( const size_t  wi) const
inline

Definition at line 194 of file weights.hxx.

§ weightUpperBounds()

template<class T >
const std::vector<T>& opengm::learning::WeightConstraints< T >::weightUpperBounds ( ) const
inline

Definition at line 201 of file weights.hxx.