#include <gibbs.hxx>
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 ¶m=Parameter()) | |
std::string | name () const |
const GraphicalModelType & | graphicalModel () 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 |
Gibbs sampling.
Definition at line 94 of file gibbs.hxx.
typedef ACC opengm::Gibbs< GM, ACC >::AccumulationType |
Reimplemented from opengm::Inference< GM, ACC >.
typedef EmptyVisitor<Gibbs<GM, ACC> > opengm::Gibbs< GM, ACC >::EmptyVisitorType |
typedef GM opengm::Gibbs< GM, ACC >::GraphicalModelType |
Reimplemented from opengm::Inference< GM, ACC >.
typedef Movemaker<GraphicalModelType> opengm::Gibbs< GM, ACC >::MovemakerType |
typedef double opengm::Gibbs< GM, ACC >::ProbabilityType |
typedef TimingVisitor<Gibbs<GM, ACC> > opengm::Gibbs< GM, ACC >::TimingVisitorType |
typedef VerboseVisitor<Gibbs<GM, ACC> > opengm::Gibbs< GM, ACC >::VerboseVisitorType |
opengm::Gibbs< GM, ACC >::Gibbs | ( | const GraphicalModelType & | gm, | |
const Parameter & | param = Parameter() | |||
) | [inline] |
InferenceTermination opengm::Gibbs< GM, ACC >::arg | ( | std::vector< LabelType > & | arg, | |
const size_t | argIndex = 1 | |||
) | const [inline, virtual] |
output a solution
[out] | arg | labeling |
argIndex | solution index (0=best, 1=second best, etc.) |
Reimplemented from opengm::Inference< GM, ACC >.
Gibbs< GM, ACC >::LabelType opengm::Gibbs< GM, ACC >::currentBestState | ( | const size_t | j | ) | const [inline] |
Gibbs< GM, ACC >::ValueType opengm::Gibbs< GM, ACC >::currentBestValue | ( | ) | const [inline] |
const Gibbs< GM, ACC >::GraphicalModelType & opengm::Gibbs< GM, ACC >::graphicalModel | ( | ) | const [inline, virtual] |
Implements opengm::Inference< GM, ACC >.
InferenceTermination opengm::Gibbs< GM, ACC >::infer | ( | VISITOR & | visitor | ) | [inline] |
InferenceTermination opengm::Gibbs< GM, ACC >::infer | ( | ) | [inline, virtual] |
Implements opengm::Inference< GM, ACC >.
Gibbs< GM, ACC >::LabelType opengm::Gibbs< GM, ACC >::markovState | ( | const size_t | j | ) | const [inline] |
Gibbs< GM, ACC >::ValueType opengm::Gibbs< GM, ACC >::markovValue | ( | ) | const [inline] |
std::string opengm::Gibbs< GM, ACC >::name | ( | ) | const [inline, virtual] |
Implements opengm::Inference< GM, ACC >.
void opengm::Gibbs< GM, ACC >::reset | ( | ) | [inline] |
void opengm::Gibbs< GM, ACC >::setStartingPoint | ( | typename std::vector< LabelType >::const_iterator | begin | ) | [virtual] |
set initial labeling
begin | iterator to the beginning of a sequence of labels |
Reimplemented from opengm::Inference< GM, ACC >.
opengm::Gibbs< GM, ACC >::OPENGM_GM_TYPE_TYPEDEFS |