opengm::SwendsenWang< GM, ACC > Class Template Reference
[Inference Algorithms]

Generalized Swendsen-Wang sampling

A. Barbu, S. Zhu, "Generalizing swendsen-wang to sampling arbitrary posterior probabilities", PAMI 27:1239-1253, 2005. More...

#include <swendsenwang.hxx>

Inheritance diagram for opengm::SwendsenWang< GM, ACC >:
Inheritance graph
[legend]
Collaboration diagram for opengm::SwendsenWang< GM, ACC >:
Collaboration graph
[legend]

List of all members.

Classes

struct  Parameter

Public Types

typedef GM GraphicalModelType
typedef ACC AccumulationType
typedef
GraphicalModelType::LabelType 
LabelType
typedef
GraphicalModelType::IndexType 
IndexType
typedef
GraphicalModelType::ValueType 
ValueType
typedef
GraphicalModelType::OperatorType 
OperatorType
typedef
GraphicalModelType::FactorType 
FactorType
typedef
GraphicalModelType::IndependentFactorType 
IndependentFactorType
typedef
GraphicalModelType::FunctionIdentifier 
FunctionIdentifier
typedef double ProbabilityType
typedef
SwendsenWangEmptyVisitor
< SwendsenWang< GM, ACC > > 
EmptyVisitorType
typedef
SwendsenWangVerboseVisitor
< SwendsenWang< GM, ACC > > 
VerboseVisitorType
typedef TimingVisitor
< SwendsenWang< GM, ACC > > 
TimingVisitorType

Public Member Functions

 SwendsenWang (const GraphicalModelType &, const Parameter &param=Parameter())
virtual std::string name () const
virtual const GraphicalModelTypegraphicalModel () const
virtual void reset ()
virtual InferenceTermination infer ()
template<class VISITOR >
InferenceTermination infer (VISITOR &)
virtual InferenceTermination arg (std::vector< LabelType > &, const size_t=1) const
 output a solution
LabelType markovState (const size_t) const
ValueType markovValue () const
LabelType currentBestState (const size_t) const
ValueType currentBestValue () const

Detailed Description

template<class GM, class ACC>
class opengm::SwendsenWang< GM, ACC >

Generalized Swendsen-Wang sampling

A. Barbu, S. Zhu, "Generalizing swendsen-wang to sampling arbitrary posterior probabilities", PAMI 27:1239-1253, 2005.

Definition at line 115 of file swendsenwang.hxx.


Member Typedef Documentation

template<class GM, class ACC>
typedef ACC opengm::SwendsenWang< GM, ACC >::AccumulationType

Reimplemented from opengm::Inference< GM, ACC >.

Definition at line 119 of file swendsenwang.hxx.

template<class GM, class ACC>
typedef SwendsenWangEmptyVisitor<SwendsenWang<GM, ACC> > opengm::SwendsenWang< GM, ACC >::EmptyVisitorType

Definition at line 122 of file swendsenwang.hxx.

template<class GM, class ACC>
typedef GraphicalModelType::FactorType opengm::SwendsenWang< GM, ACC >::FactorType

Reimplemented from opengm::Inference< GM, ACC >.

Definition at line 120 of file swendsenwang.hxx.

template<class GM, class ACC>
typedef GraphicalModelType::FunctionIdentifier opengm::SwendsenWang< GM, ACC >::FunctionIdentifier

Reimplemented from opengm::Inference< GM, ACC >.

Definition at line 120 of file swendsenwang.hxx.

template<class GM, class ACC>
typedef GM opengm::SwendsenWang< GM, ACC >::GraphicalModelType

Reimplemented from opengm::Inference< GM, ACC >.

Definition at line 118 of file swendsenwang.hxx.

template<class GM, class ACC>
typedef GraphicalModelType::IndependentFactorType opengm::SwendsenWang< GM, ACC >::IndependentFactorType

Reimplemented from opengm::Inference< GM, ACC >.

Definition at line 120 of file swendsenwang.hxx.

template<class GM, class ACC>
typedef GraphicalModelType::IndexType opengm::SwendsenWang< GM, ACC >::IndexType

Reimplemented from opengm::Inference< GM, ACC >.

Definition at line 120 of file swendsenwang.hxx.

template<class GM, class ACC>
typedef GraphicalModelType::LabelType opengm::SwendsenWang< GM, ACC >::LabelType

Reimplemented from opengm::Inference< GM, ACC >.

Definition at line 120 of file swendsenwang.hxx.

template<class GM, class ACC>
typedef GraphicalModelType::OperatorType opengm::SwendsenWang< GM, ACC >::OperatorType

Reimplemented from opengm::Inference< GM, ACC >.

Definition at line 120 of file swendsenwang.hxx.

template<class GM, class ACC>
typedef double opengm::SwendsenWang< GM, ACC >::ProbabilityType

Definition at line 121 of file swendsenwang.hxx.

template<class GM, class ACC>
typedef TimingVisitor<SwendsenWang<GM, ACC> > opengm::SwendsenWang< GM, ACC >::TimingVisitorType

Definition at line 124 of file swendsenwang.hxx.

template<class GM, class ACC>
typedef GraphicalModelType::ValueType opengm::SwendsenWang< GM, ACC >::ValueType

Reimplemented from opengm::Inference< GM, ACC >.

Definition at line 120 of file swendsenwang.hxx.

template<class GM, class ACC>
typedef SwendsenWangVerboseVisitor<SwendsenWang<GM, ACC> > opengm::SwendsenWang< GM, ACC >::VerboseVisitorType

Definition at line 123 of file swendsenwang.hxx.


Constructor & Destructor Documentation

template<class GM, class ACC>
opengm::SwendsenWang< GM, ACC >::SwendsenWang ( const GraphicalModelType ,
const Parameter param = Parameter() 
)

Member Function Documentation

template<class GM , class ACC >
InferenceTermination opengm::SwendsenWang< GM, ACC >::arg ( std::vector< LabelType > &  arg,
const size_t  argIndex = 1 
) const [inline, virtual]

output a solution

Parameters:
[out] arg labeling
argIndex solution index (0=best, 1=second best, etc.)

Reimplemented from opengm::Inference< GM, ACC >.

Definition at line 371 of file swendsenwang.hxx.

template<class GM , class ACC >
SwendsenWang< GM, ACC >::LabelType opengm::SwendsenWang< GM, ACC >::currentBestState ( const size_t  j  )  const [inline]

Definition at line 405 of file swendsenwang.hxx.

template<class GM , class ACC >
SwendsenWang< GM, ACC >::ValueType opengm::SwendsenWang< GM, ACC >::currentBestValue (  )  const [inline]

Definition at line 415 of file swendsenwang.hxx.

template<class GM , class ACC >
const SwendsenWang< GM, ACC >::GraphicalModelType & opengm::SwendsenWang< GM, ACC >::graphicalModel (  )  const [inline, virtual]

Implements opengm::Inference< GM, ACC >.

Definition at line 229 of file swendsenwang.hxx.

template<class GM , class ACC >
template<class VISITOR >
InferenceTermination opengm::SwendsenWang< GM, ACC >::infer ( VISITOR &  visitor  )  [inline]

Definition at line 238 of file swendsenwang.hxx.

template<class GM , class ACC >
InferenceTermination opengm::SwendsenWang< GM, ACC >::infer (  )  [inline, virtual]

Implements opengm::Inference< GM, ACC >.

Definition at line 362 of file swendsenwang.hxx.

template<class GM , class ACC >
SwendsenWang< GM, ACC >::LabelType opengm::SwendsenWang< GM, ACC >::markovState ( const size_t  j  )  const [inline]

Definition at line 387 of file swendsenwang.hxx.

template<class GM , class ACC >
SwendsenWang< GM, ACC >::ValueType opengm::SwendsenWang< GM, ACC >::markovValue (  )  const [inline]

Definition at line 397 of file swendsenwang.hxx.

Here is the call graph for this function:

template<class GM , class ACC >
std::string opengm::SwendsenWang< GM, ACC >::name (  )  const [inline, virtual]

Implements opengm::Inference< GM, ACC >.

Definition at line 222 of file swendsenwang.hxx.

template<class GM , class ACC >
void opengm::SwendsenWang< GM, ACC >::reset (  )  [inline, virtual]

Definition at line 203 of file swendsenwang.hxx.

Here is the call graph for this function:

 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