Brute force inference algorithm. More...
#include <bruteforce.hxx>
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 EmptyVisitor < Bruteforce< GM, ACC > > | EmptyVisitorType |
typedef VerboseVisitor < Bruteforce< GM, ACC > > | VerboseVisitorType |
typedef TimingVisitor < Bruteforce< GM, ACC > > | TimingVisitorType |
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 | |
virtual ValueType | value () const |
return the solution (value) | |
void | reset () |
Brute force inference algorithm.
Definition at line 15 of file bruteforce.hxx.
typedef ACC opengm::Bruteforce< GM, ACC >::AccumulationType |
Reimplemented from opengm::Inference< GM, ACC >.
Definition at line 18 of file bruteforce.hxx.
typedef EmptyVisitor< Bruteforce<GM, ACC> > opengm::Bruteforce< GM, ACC >::EmptyVisitorType |
Definition at line 22 of file bruteforce.hxx.
typedef GraphicalModelType::FactorType opengm::Bruteforce< GM, ACC >::FactorType |
Reimplemented from opengm::Inference< GM, ACC >.
Definition at line 20 of file bruteforce.hxx.
typedef GraphicalModelType::FunctionIdentifier opengm::Bruteforce< GM, ACC >::FunctionIdentifier |
Reimplemented from opengm::Inference< GM, ACC >.
Definition at line 20 of file bruteforce.hxx.
typedef GM opengm::Bruteforce< GM, ACC >::GraphicalModelType |
Reimplemented from opengm::Inference< GM, ACC >.
Definition at line 19 of file bruteforce.hxx.
typedef GraphicalModelType::IndependentFactorType opengm::Bruteforce< GM, ACC >::IndependentFactorType |
Reimplemented from opengm::Inference< GM, ACC >.
Definition at line 20 of file bruteforce.hxx.
typedef GraphicalModelType::IndexType opengm::Bruteforce< GM, ACC >::IndexType |
Reimplemented from opengm::Inference< GM, ACC >.
Definition at line 20 of file bruteforce.hxx.
typedef std::vector<LabelType>::const_iterator opengm::Bruteforce< GM, ACC >::LabelIterator |
Definition at line 21 of file bruteforce.hxx.
typedef GraphicalModelType::LabelType opengm::Bruteforce< GM, ACC >::LabelType |
Reimplemented from opengm::Inference< GM, ACC >.
Definition at line 20 of file bruteforce.hxx.
typedef GraphicalModelType::OperatorType opengm::Bruteforce< GM, ACC >::OperatorType |
Reimplemented from opengm::Inference< GM, ACC >.
Definition at line 20 of file bruteforce.hxx.
typedef TimingVisitor< Bruteforce<GM, ACC> > opengm::Bruteforce< GM, ACC >::TimingVisitorType |
Definition at line 24 of file bruteforce.hxx.
typedef GraphicalModelType::ValueType opengm::Bruteforce< GM, ACC >::ValueType |
Reimplemented from opengm::Inference< GM, ACC >.
Definition at line 20 of file bruteforce.hxx.
typedef 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 | ) | [inline] |
Definition at line 46 of file bruteforce.hxx.
opengm::Bruteforce< GM, ACC >::Bruteforce | ( | const GraphicalModelType & | , | |
const Parameter & | ||||
) |
InferenceTermination opengm::Bruteforce< GM, AKK >::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 123 of file bruteforce.hxx.
const GraphicalModelType& opengm::Bruteforce< GM, ACC >::graphicalModel | ( | ) | const [inline, virtual] |
Implements opengm::Inference< GM, ACC >.
Definition at line 30 of file bruteforce.hxx.
InferenceTermination opengm::Bruteforce< GM, AKK >::infer | ( | VISITOR & | visitor | ) | [inline] |
InferenceTermination opengm::Bruteforce< GM, ACC >::infer | ( | ) | [inline, virtual] |
Implements opengm::Inference< GM, ACC >.
Definition at line 31 of file bruteforce.hxx.
std::string opengm::Bruteforce< GM, ACC >::name | ( | ) | const [inline, virtual] |
Implements opengm::Inference< GM, ACC >.
Definition at line 29 of file bruteforce.hxx.
void opengm::Bruteforce< GM, AKK >::reset | ( | ) | [inline] |
GM::ValueType opengm::Bruteforce< GM, ACC >::value | ( | ) | const [inline, virtual] |
return the solution (value)
Reimplemented from opengm::Inference< GM, ACC >.
Definition at line 140 of file bruteforce.hxx.