opengm::Gibbs< GM, ACC > Class Template Reference

Gibbs sampling. More...

#include <gibbs.hxx>

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

List of all members.

Classes

class  Parameter

Public Types

typedef ACC AccumulationType
typedef GM GraphicalModelType
typedef Movemaker
< GraphicalModelType
MovemakerType
typedef VerboseVisitor< Gibbs
< GM, ACC > > 
VerboseVisitorType
typedef EmptyVisitor< Gibbs
< GM, ACC > > 
EmptyVisitorType
typedef TimingVisitor< Gibbs
< GM, ACC > > 
TimingVisitorType
typedef double ProbabilityType

Public Member Functions

 Gibbs (const GraphicalModelType &, const Parameter &param=Parameter())
std::string name () const
const GraphicalModelTypegraphicalModel () const
void reset ()
InferenceTermination infer ()
template<class VISITOR >
InferenceTermination infer (VISITOR &)
void setStartingPoint (typename std::vector< LabelType >::const_iterator)
 set initial labeling
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

Public Attributes

 OPENGM_GM_TYPE_TYPEDEFS

Detailed Description

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

Gibbs sampling.

Definition at line 94 of file gibbs.hxx.


Member Typedef Documentation

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

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

Definition at line 97 of file gibbs.hxx.

template<class GM, class ACC>
typedef EmptyVisitor<Gibbs<GM, ACC> > opengm::Gibbs< GM, ACC >::EmptyVisitorType

Definition at line 102 of file gibbs.hxx.

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

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

Definition at line 98 of file gibbs.hxx.

template<class GM, class ACC>
typedef Movemaker<GraphicalModelType> opengm::Gibbs< GM, ACC >::MovemakerType

Definition at line 100 of file gibbs.hxx.

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

Definition at line 104 of file gibbs.hxx.

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

Definition at line 103 of file gibbs.hxx.

template<class GM, class ACC>
typedef VerboseVisitor<Gibbs<GM, ACC> > opengm::Gibbs< GM, ACC >::VerboseVisitorType

Definition at line 101 of file gibbs.hxx.


Constructor & Destructor Documentation

template<class GM , class ACC >
opengm::Gibbs< GM, ACC >::Gibbs ( const GraphicalModelType gm,
const Parameter param = Parameter() 
) [inline]

Definition at line 182 of file gibbs.hxx.


Member Function Documentation

template<class GM , class ACC >
InferenceTermination opengm::Gibbs< 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 378 of file gibbs.hxx.

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

Definition at line 415 of file gibbs.hxx.

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

Definition at line 425 of file gibbs.hxx.

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

Implements opengm::Inference< GM, ACC >.

Definition at line 253 of file gibbs.hxx.

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

Definition at line 268 of file gibbs.hxx.

Here is the call graph for this function:

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

Implements opengm::Inference< GM, ACC >.

Definition at line 260 of file gibbs.hxx.

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

Definition at line 397 of file gibbs.hxx.

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

Definition at line 407 of file gibbs.hxx.

Here is the call graph for this function:

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

Implements opengm::Inference< GM, ACC >.

Definition at line 246 of file gibbs.hxx.

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

Definition at line 207 of file gibbs.hxx.

Here is the call graph for this function:

template<class GM, class ACC>
void opengm::Gibbs< GM, ACC >::setStartingPoint ( typename std::vector< LabelType >::const_iterator  begin  )  [virtual]

set initial labeling

Parameters:
begin iterator to the beginning of a sequence of labels

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


Member Data Documentation

template<class GM, class ACC>
opengm::Gibbs< GM, ACC >::OPENGM_GM_TYPE_TYPEDEFS

Definition at line 99 of file gibbs.hxx.

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