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>
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 ¶m=Parameter()) | |
virtual std::string | name () const |
virtual const GraphicalModelType & | graphicalModel () 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 |
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.
typedef ACC opengm::SwendsenWang< GM, ACC >::AccumulationType |
Reimplemented from opengm::Inference< GM, ACC >.
Definition at line 119 of file swendsenwang.hxx.
typedef SwendsenWangEmptyVisitor<SwendsenWang<GM, ACC> > opengm::SwendsenWang< GM, ACC >::EmptyVisitorType |
Definition at line 122 of file swendsenwang.hxx.
typedef GraphicalModelType::FactorType opengm::SwendsenWang< GM, ACC >::FactorType |
Reimplemented from opengm::Inference< GM, ACC >.
Definition at line 120 of file swendsenwang.hxx.
typedef GraphicalModelType::FunctionIdentifier opengm::SwendsenWang< GM, ACC >::FunctionIdentifier |
Reimplemented from opengm::Inference< GM, ACC >.
Definition at line 120 of file swendsenwang.hxx.
typedef GM opengm::SwendsenWang< GM, ACC >::GraphicalModelType |
Reimplemented from opengm::Inference< GM, ACC >.
Definition at line 118 of file swendsenwang.hxx.
typedef GraphicalModelType::IndependentFactorType opengm::SwendsenWang< GM, ACC >::IndependentFactorType |
Reimplemented from opengm::Inference< GM, ACC >.
Definition at line 120 of file swendsenwang.hxx.
typedef GraphicalModelType::IndexType opengm::SwendsenWang< GM, ACC >::IndexType |
Reimplemented from opengm::Inference< GM, ACC >.
Definition at line 120 of file swendsenwang.hxx.
typedef GraphicalModelType::LabelType opengm::SwendsenWang< GM, ACC >::LabelType |
Reimplemented from opengm::Inference< GM, ACC >.
Definition at line 120 of file swendsenwang.hxx.
typedef GraphicalModelType::OperatorType opengm::SwendsenWang< GM, ACC >::OperatorType |
Reimplemented from opengm::Inference< GM, ACC >.
Definition at line 120 of file swendsenwang.hxx.
typedef double opengm::SwendsenWang< GM, ACC >::ProbabilityType |
Definition at line 121 of file swendsenwang.hxx.
typedef TimingVisitor<SwendsenWang<GM, ACC> > opengm::SwendsenWang< GM, ACC >::TimingVisitorType |
Definition at line 124 of file swendsenwang.hxx.
typedef GraphicalModelType::ValueType opengm::SwendsenWang< GM, ACC >::ValueType |
Reimplemented from opengm::Inference< GM, ACC >.
Definition at line 120 of file swendsenwang.hxx.
typedef SwendsenWangVerboseVisitor<SwendsenWang<GM, ACC> > opengm::SwendsenWang< GM, ACC >::VerboseVisitorType |
Definition at line 123 of file swendsenwang.hxx.
opengm::SwendsenWang< GM, ACC >::SwendsenWang | ( | const GraphicalModelType & | , | |
const Parameter & | param = Parameter() | |||
) |
InferenceTermination opengm::SwendsenWang< 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 >.
Definition at line 371 of file swendsenwang.hxx.
SwendsenWang< GM, ACC >::LabelType opengm::SwendsenWang< GM, ACC >::currentBestState | ( | const size_t | j | ) | const [inline] |
Definition at line 405 of file swendsenwang.hxx.
SwendsenWang< GM, ACC >::ValueType opengm::SwendsenWang< GM, ACC >::currentBestValue | ( | ) | const [inline] |
Definition at line 415 of file swendsenwang.hxx.
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.
InferenceTermination opengm::SwendsenWang< GM, ACC >::infer | ( | VISITOR & | visitor | ) | [inline] |
Definition at line 238 of file swendsenwang.hxx.
InferenceTermination opengm::SwendsenWang< GM, ACC >::infer | ( | ) | [inline, virtual] |
Implements opengm::Inference< GM, ACC >.
Definition at line 362 of file swendsenwang.hxx.
SwendsenWang< GM, ACC >::LabelType opengm::SwendsenWang< GM, ACC >::markovState | ( | const size_t | j | ) | const [inline] |
Definition at line 387 of file swendsenwang.hxx.
SwendsenWang< GM, ACC >::ValueType opengm::SwendsenWang< GM, ACC >::markovValue | ( | ) | const [inline] |
std::string opengm::SwendsenWang< GM, ACC >::name | ( | ) | const [inline, virtual] |
Implements opengm::Inference< GM, ACC >.
Definition at line 222 of file swendsenwang.hxx.
void opengm::SwendsenWang< GM, ACC >::reset | ( | ) | [inline, virtual] |