trws_base::SumProdTRWS< GM, ACC > Class Template Reference

#include <trws_base.hxx>

Inheritance diagram for trws_base::SumProdTRWS< GM, ACC >:
Inheritance graph
[legend]
Collaboration diagram for trws_base::SumProdTRWS< GM, ACC >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef TRWSPrototype
< SumProdSolver< GM, ACC,
typename std::vector< typename
GM::ValueType >
::const_iterator > > 
parent
typedef ACC AccumulationType
typedef GM GraphicalModelType
typedef parent::SubSolverType SubSolver
typedef
parent::const_marginals_iterators_pair 
const_marginals_iterators_pair
typedef parent::ValueType ValueType
typedef parent::IndexType IndexType
typedef parent::LabelType LabelType
typedef
parent::InferenceTermination 
InferenceTermination
typedef SequenceStorage< GMSubModel
typedef DecompositionStorage< GMStorage
typedef parent::OutputContainerType OutputContainerType
typedef
OutputContainerType::iterator 
OutputIteratorType
typedef SumProdTRWS_Parameters
< ValueType
Parameters

Public Member Functions

 SumProdTRWS (Storage &storage, const Parameters &params)
 ~SumProdTRWS ()
void SetSmoothing (ValueType smoothingValue)
ValueType GetSmoothing () const
std::pair< ValueType, ValueTypeGetMarginals (IndexType variable, OutputIteratorType begin)
ValueType GetMarginalsAndDerivativeMove ()
ValueType getDerivative (size_t i) const
 > besides computation of marginals returns derivative w.r.t. _smoothingValue

Protected Member Functions

void _SumUpForwardMarginals (std::vector< ValueType > *pout, const_marginals_iterators_pair itpair)
void _postprocessMarginals (typename std::vector< ValueType >::iterator begin, typename std::vector< ValueType >::iterator end)
void _normalizeMarginals (typename std::vector< ValueType >::iterator begin, typename std::vector< ValueType >::iterator end, SubSolver *subSolver)
void _InitMove ()

Protected Attributes

ValueType _smoothingValue

Detailed Description

template<class GM, class ACC>
class trws_base::SumProdTRWS< GM, ACC >

Definition at line 318 of file trws_base.hxx.


Member Typedef Documentation

template<class GM, class ACC>
typedef ACC trws_base::SumProdTRWS< GM, ACC >::AccumulationType
template<class GM, class ACC>
typedef GM trws_base::SumProdTRWS< GM, ACC >::GraphicalModelType
template<class GM, class ACC>
typedef parent::IndexType trws_base::SumProdTRWS< GM, ACC >::IndexType
template<class GM, class ACC>
typedef parent::LabelType trws_base::SumProdTRWS< GM, ACC >::LabelType
template<class GM, class ACC>
typedef parent::OutputContainerType trws_base::SumProdTRWS< GM, ACC >::OutputContainerType
template<class GM, class ACC>
typedef OutputContainerType::iterator trws_base::SumProdTRWS< GM, ACC >::OutputIteratorType
template<class GM, class ACC>
typedef SumProdTRWS_Parameters<ValueType> trws_base::SumProdTRWS< GM, ACC >::Parameters
template<class GM, class ACC>
typedef TRWSPrototype<SumProdSolver<GM,ACC,typename std::vector<typename GM::ValueType>::const_iterator> > trws_base::SumProdTRWS< GM, ACC >::parent

Definition at line 321 of file trws_base.hxx.

template<class GM, class ACC>
typedef DecompositionStorage<GM> trws_base::SumProdTRWS< GM, ACC >::Storage
template<class GM, class ACC>
typedef SequenceStorage<GM> trws_base::SumProdTRWS< GM, ACC >::SubModel
template<class GM, class ACC>
typedef parent::SubSolverType trws_base::SumProdTRWS< GM, ACC >::SubSolver

Definition at line 324 of file trws_base.hxx.

template<class GM, class ACC>
typedef parent::ValueType trws_base::SumProdTRWS< GM, ACC >::ValueType

Constructor & Destructor Documentation

template<class GM, class ACC>
trws_base::SumProdTRWS< GM, ACC >::SumProdTRWS ( Storage storage,
const Parameters params 
) [inline]

Definition at line 337 of file trws_base.hxx.

template<class GM, class ACC>
trws_base::SumProdTRWS< GM, ACC >::~SumProdTRWS (  )  [inline]

Definition at line 349 of file trws_base.hxx.


Member Function Documentation

template<class GM , class ACC >
void trws_base::SumProdTRWS< GM, ACC >::_InitMove (  )  [inline, protected, virtual]

< calling ->InitMove() for each element of the container

Implements trws_base::TRWSPrototype< SumProdSolver< GM, ACC, std::vector< GM::ValueType >::const_iterator > >.

Definition at line 1032 of file trws_base.hxx.

Here is the caller graph for this function:

template<class GM , class ACC >
void trws_base::SumProdTRWS< GM, ACC >::_normalizeMarginals ( typename std::vector< ValueType >::iterator  begin,
typename std::vector< ValueType >::iterator  end,
SubSolver subSolver 
) [inline, protected]

D not needed

Definition at line 1039 of file trws_base.hxx.

Here is the call graph for this function:

Here is the caller graph for this function:

template<class GM , class ACC >
void trws_base::SumProdTRWS< GM, ACC >::_postprocessMarginals ( typename std::vector< ValueType >::iterator  begin,
typename std::vector< ValueType >::iterator  end 
) [inline, protected]

Definition at line 1048 of file trws_base.hxx.

Here is the call graph for this function:

template<class GM , class ACC >
void trws_base::SumProdTRWS< GM, ACC >::_SumUpForwardMarginals ( std::vector< ValueType > *  pout,
const_marginals_iterators_pair  itpair 
) [inline, protected]

Definition at line 1054 of file trws_base.hxx.

template<class GM, class ACC>
ValueType trws_base::SumProdTRWS< GM, ACC >::getDerivative ( size_t  i  )  const [inline]

> besides computation of marginals returns derivative w.r.t. _smoothingValue

Definition at line 363 of file trws_base.hxx.

template<class GM , class ACC >
std::pair< typename SumProdTRWS< GM, ACC >::ValueType, typename SumProdTRWS< GM, ACC >::ValueType > trws_base::SumProdTRWS< GM, ACC >::GetMarginals ( IndexType  variable,
OutputIteratorType  begin 
) [inline]

Definition at line 1061 of file trws_base.hxx.

Here is the call graph for this function:

template<class GM , class ACC >
SumProdTRWS< GM, ACC >::ValueType trws_base::SumProdTRWS< GM, ACC >::GetMarginalsAndDerivativeMove (  )  [inline]

Definition at line 1100 of file trws_base.hxx.

Here is the call graph for this function:

Here is the caller graph for this function:

template<class GM, class ACC>
ValueType trws_base::SumProdTRWS< GM, ACC >::GetSmoothing (  )  const [inline]

Definition at line 356 of file trws_base.hxx.

Here is the caller graph for this function:

template<class GM, class ACC>
void trws_base::SumProdTRWS< GM, ACC >::SetSmoothing ( ValueType  smoothingValue  )  [inline]

Definition at line 355 of file trws_base.hxx.

Here is the call graph for this function:


Member Data Documentation

template<class GM, class ACC>
ValueType trws_base::SumProdTRWS< GM, ACC >::_smoothingValue [protected]

Definition at line 372 of file trws_base.hxx.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Mon Jun 17 16:31:13 2013 for OpenGM by  doxygen 1.6.3