|
OpenGM
2.3.x
Discrete Graphical Model Library
|
Brute force inference algorithm. More...
#include <bruteforce.hxx>
Inheritance diagram for opengm::Bruteforce< GM, ACC >:
Collaboration diagram for opengm::Bruteforce< GM, ACC >:Classes | |
| class | Parameter |
Public Types | |
| typedef ACC | AccumulationType |
| typedef GM | GraphicalModelType |
| 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 std::vector< LabelType >::const_iterator | LabelIterator |
| typedef visitors::VerboseVisitor< Bruteforce< GM, ACC > > | VerboseVisitorType |
| typedef visitors::EmptyVisitor< Bruteforce< GM, ACC > > | EmptyVisitorType |
| typedef visitors::TimingVisitor< Bruteforce< GM, ACC > > | TimingVisitorType |
Public Types inherited from opengm::Inference< GM, ACC > | |
| 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 |
Public Member Functions | |
| Bruteforce (const GraphicalModelType &) | |
| Bruteforce (const GraphicalModelType &, const Parameter &) | |
| std::string | name () const |
| const GraphicalModelType & | graphicalModel () const |
| InferenceTermination | infer () |
| template<class VISITOR > | |
| InferenceTermination | infer (VISITOR &) |
| InferenceTermination | arg (std::vector< LabelType > &, const size_t=1) const |
| output a solution More... | |
| virtual ValueType | value () const |
| return the solution (value) More... | |
| void | reset () |
Public Member Functions inherited from opengm::Inference< GM, ACC > | |
| virtual | ~Inference () |
| virtual void | setStartingPoint (typename std::vector< LabelType >::const_iterator) |
| set initial labeling More... | |
| virtual InferenceTermination | args (std::vector< std::vector< LabelType > > &) const |
| virtual InferenceTermination | marginal (const size_t, IndependentFactorType &) const |
| output a solution for a marginal for a specific variable More... | |
| virtual InferenceTermination | factorMarginal (const size_t, IndependentFactorType &) const |
| output a solution for a marginal for all variables connected to a factor More... | |
| virtual ValueType | bound () const |
| return a bound on the solution More... | |
| InferenceTermination | constrainedOptimum (std::vector< IndexType > &, std::vector< LabelType > &, std::vector< LabelType > &) const |
| InferenceTermination | modeFromMarginal (std::vector< LabelType > &) const |
| InferenceTermination | modeFromFactorMarginal (std::vector< LabelType > &) const |
Brute force inference algorithm.
Definition at line 16 of file bruteforce.hxx.
| typedef ACC opengm::Bruteforce< GM, ACC >::AccumulationType |
Definition at line 19 of file bruteforce.hxx.
| typedef visitors::EmptyVisitor<Bruteforce<GM,ACC> > opengm::Bruteforce< GM, ACC >::EmptyVisitorType |
Definition at line 24 of file bruteforce.hxx.
| typedef GraphicalModelType::FactorType opengm::Bruteforce< GM, ACC >::FactorType |
Definition at line 21 of file bruteforce.hxx.
| typedef GraphicalModelType::FunctionIdentifier opengm::Bruteforce< GM, ACC >::FunctionIdentifier |
Definition at line 21 of file bruteforce.hxx.
| typedef GM opengm::Bruteforce< GM, ACC >::GraphicalModelType |
Definition at line 20 of file bruteforce.hxx.
| typedef GraphicalModelType::IndependentFactorType opengm::Bruteforce< GM, ACC >::IndependentFactorType |
Definition at line 21 of file bruteforce.hxx.
| typedef GraphicalModelType::IndexType opengm::Bruteforce< GM, ACC >::IndexType |
Definition at line 21 of file bruteforce.hxx.
| typedef std::vector<LabelType>::const_iterator opengm::Bruteforce< GM, ACC >::LabelIterator |
Definition at line 22 of file bruteforce.hxx.
| typedef GraphicalModelType::LabelType opengm::Bruteforce< GM, ACC >::LabelType |
Definition at line 21 of file bruteforce.hxx.
| typedef GraphicalModelType::OperatorType opengm::Bruteforce< GM, ACC >::OperatorType |
Definition at line 21 of file bruteforce.hxx.
| typedef visitors::TimingVisitor<Bruteforce<GM,ACC> > opengm::Bruteforce< GM, ACC >::TimingVisitorType |
Definition at line 25 of file bruteforce.hxx.
| typedef GraphicalModelType::ValueType opengm::Bruteforce< GM, ACC >::ValueType |
Definition at line 21 of file bruteforce.hxx.
| typedef visitors::VerboseVisitor<Bruteforce<GM,ACC> > opengm::Bruteforce< GM, ACC >::VerboseVisitorType |
Definition at line 23 of file bruteforce.hxx.
| opengm::Bruteforce< GM, AKK >::Bruteforce | ( | const GraphicalModelType & | gm | ) |
Definition at line 46 of file bruteforce.hxx.
| opengm::Bruteforce< GM, ACC >::Bruteforce | ( | const GraphicalModelType & | , |
| const Parameter & | |||
| ) |
|
inlinevirtual |
output a solution
| [out] | arg | labeling |
| argIndex | solution index (1=best, 2=second best, etc.) |
Reimplemented from opengm::Inference< GM, ACC >.
Definition at line 126 of file bruteforce.hxx.
|
inlinevirtual |
Implements opengm::Inference< GM, ACC >.
Definition at line 31 of file bruteforce.hxx.
|
inlinevirtual |
Implements opengm::Inference< GM, ACC >.
Definition at line 32 of file bruteforce.hxx.
Here is the call graph for this function:
Here is the caller graph for this function:| InferenceTermination opengm::Bruteforce< GM, AKK >::infer | ( | VISITOR & | visitor | ) |
Definition at line 82 of file bruteforce.hxx.
|
inlinevirtual |
Implements opengm::Inference< GM, ACC >.
Definition at line 30 of file bruteforce.hxx.
| void opengm::Bruteforce< GM, AKK >::reset | ( | ) |
Definition at line 59 of file bruteforce.hxx.
|
virtual |
return the solution (value)
Reimplemented from opengm::Inference< GM, ACC >.
Definition at line 143 of file bruteforce.hxx.
1.8.9.1