OpenGM  2.3.x
Discrete Graphical Model Library
Classes | Public Types | Public Member Functions | List of all members
opengm::Bruteforce< GM, ACC > Class Template Reference

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 GraphicalModelTypegraphicalModel () 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
 

Detailed Description

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

Brute force inference algorithm.

Definition at line 16 of file bruteforce.hxx.

Member Typedef Documentation

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

Definition at line 19 of file bruteforce.hxx.

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

Definition at line 24 of file bruteforce.hxx.

template<class GM, class ACC>
typedef GraphicalModelType::FactorType opengm::Bruteforce< GM, ACC >::FactorType

Definition at line 21 of file bruteforce.hxx.

template<class GM, class ACC>
typedef GraphicalModelType::FunctionIdentifier opengm::Bruteforce< GM, ACC >::FunctionIdentifier

Definition at line 21 of file bruteforce.hxx.

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

Definition at line 20 of file bruteforce.hxx.

template<class GM, class ACC>
typedef GraphicalModelType::IndependentFactorType opengm::Bruteforce< GM, ACC >::IndependentFactorType

Definition at line 21 of file bruteforce.hxx.

template<class GM, class ACC>
typedef GraphicalModelType::IndexType opengm::Bruteforce< GM, ACC >::IndexType

Definition at line 21 of file bruteforce.hxx.

template<class GM, class ACC>
typedef std::vector<LabelType>::const_iterator opengm::Bruteforce< GM, ACC >::LabelIterator

Definition at line 22 of file bruteforce.hxx.

template<class GM, class ACC>
typedef GraphicalModelType::LabelType opengm::Bruteforce< GM, ACC >::LabelType

Definition at line 21 of file bruteforce.hxx.

template<class GM, class ACC>
typedef GraphicalModelType::OperatorType opengm::Bruteforce< GM, ACC >::OperatorType

Definition at line 21 of file bruteforce.hxx.

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

Definition at line 25 of file bruteforce.hxx.

template<class GM, class ACC>
typedef GraphicalModelType::ValueType opengm::Bruteforce< GM, ACC >::ValueType

Definition at line 21 of file bruteforce.hxx.

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

Definition at line 23 of file bruteforce.hxx.

Constructor & Destructor Documentation

template<class GM , class AKK >
opengm::Bruteforce< GM, AKK >::Bruteforce ( const GraphicalModelType gm)

Definition at line 46 of file bruteforce.hxx.

template<class GM, class ACC>
opengm::Bruteforce< GM, ACC >::Bruteforce ( const GraphicalModelType ,
const Parameter  
)

Member Function Documentation

template<class GM , class AKK >
InferenceTermination opengm::Bruteforce< GM, AKK >::arg ( std::vector< LabelType > &  arg,
const size_t  argIndex = 1 
) const
inlinevirtual

output a solution

Parameters
[out]arglabeling
argIndexsolution index (1=best, 2=second best, etc.)

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

Definition at line 126 of file bruteforce.hxx.

template<class GM, class ACC>
const GraphicalModelType& opengm::Bruteforce< GM, ACC >::graphicalModel ( ) const
inlinevirtual

Implements opengm::Inference< GM, ACC >.

Definition at line 31 of file bruteforce.hxx.

template<class GM, class ACC>
InferenceTermination opengm::Bruteforce< GM, ACC >::infer ( )
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:

template<class GM , class AKK >
template<class VISITOR >
InferenceTermination opengm::Bruteforce< GM, AKK >::infer ( VISITOR &  visitor)

Definition at line 82 of file bruteforce.hxx.

template<class GM, class ACC>
std::string opengm::Bruteforce< GM, ACC >::name ( ) const
inlinevirtual

Implements opengm::Inference< GM, ACC >.

Definition at line 30 of file bruteforce.hxx.

template<class GM , class AKK >
void opengm::Bruteforce< GM, AKK >::reset ( )

Definition at line 59 of file bruteforce.hxx.

template<class GM , class ACC >
GM::ValueType opengm::Bruteforce< GM, ACC >::value ( ) const
virtual

return the solution (value)

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

Definition at line 143 of file bruteforce.hxx.