opengm::LOC< GM, ACC > Class Template Reference
[Inference Algorithms]

LOC Algorithm

K. Jung, P. Kohli and D. Shah, "Local Rules for Global MAP: When Do They Work?", NIPS 2009. More...

#include <loc.hxx>

Inheritance diagram for opengm::LOC< GM, ACC >:
Inheritance graph
[legend]
Collaboration diagram for opengm::LOC< GM, ACC >:
Collaboration graph
[legend]

List of all members.

Classes

class  Parameter

Public Types

typedef ACC AccumulationType
typedef GM GraphicalModelType
typedef Movemaker
< GraphicalModelType
MovemakerType
typedef VerboseVisitor< LOC
< GM, ACC > > 
VerboseVisitorType
typedef TimingVisitor< LOC< GM,
ACC > > 
TimingVisitorType
typedef EmptyVisitor< LOC< GM,
ACC > > 
EmptyVisitorType

Public Member Functions

 LOC (const GraphicalModelType &, const Parameter &param=Parameter())
std::string name () const
const GraphicalModelTypegraphicalModel () const
InferenceTermination infer ()
void reset ()
template<class VisitorType >
InferenceTermination infer (VisitorType &)
void setStartingPoint (typename std::vector< LabelType >::const_iterator)
 set initial labeling
InferenceTermination arg (std::vector< LabelType > &, const size_t=1) const
 output a solution
ValueType value () const
 return the solution (value)

Public Attributes

 OPENGM_GM_TYPE_TYPEDEFS

Detailed Description

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

LOC Algorithm

K. Jung, P. Kohli and D. Shah, "Local Rules for Global MAP: When Do They Work?", NIPS 2009.

In this implementation, the user needs to set the parameter of the truncated geometric distribution by hand. Depending on the size of the subgraph, either A* or exhaustive search is used for MAP estimation on the subgraph

Definition at line 32 of file loc.hxx.


Member Typedef Documentation

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

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

Definition at line 34 of file loc.hxx.

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

Definition at line 40 of file loc.hxx.

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

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

Definition at line 35 of file loc.hxx.

template<class GM, class ACC>
typedef Movemaker<GraphicalModelType> opengm::LOC< GM, ACC >::MovemakerType

Definition at line 37 of file loc.hxx.

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

Definition at line 39 of file loc.hxx.

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

Definition at line 38 of file loc.hxx.


Constructor & Destructor Documentation

template<class GM , class ACC >
opengm::LOC< GM, ACC >::LOC ( const GraphicalModelType gm,
const Parameter param = Parameter() 
) [inline]

Definition at line 99 of file loc.hxx.


Member Function Documentation

template<class GM , class ACC >
InferenceTermination opengm::LOC< GM, ACC >::arg ( std::vector< LabelType > &  arg,
const size_t  argIndex = 1 
) const [inline, virtual]

output a solution

Parameters:
[out] arg labeling
argIndex solution index (0=best, 1=second best, etc.)

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

Definition at line 299 of file loc.hxx.

template<class GM , class ACC >
const LOC< GM, ACC >::GraphicalModelType & opengm::LOC< GM, ACC >::graphicalModel (  )  const [inline, virtual]

Implements opengm::Inference< GM, ACC >.

Definition at line 201 of file loc.hxx.

template<class GM , class ACC >
template<class VisitorType >
InferenceTermination opengm::LOC< GM, ACC >::infer ( VisitorType &  visitor  )  [inline]

Definition at line 250 of file loc.hxx.

template<class GM , class ACC >
InferenceTermination opengm::LOC< GM, ACC >::infer (  )  [inline, virtual]

Implements opengm::Inference< GM, ACC >.

Definition at line 241 of file loc.hxx.

template<class GM , class ACC >
std::string opengm::LOC< GM, ACC >::name (  )  const [inline, virtual]

Implements opengm::Inference< GM, ACC >.

Definition at line 195 of file loc.hxx.

template<class GM , class ACC >
void opengm::LOC< GM, ACC >::reset (  )  [inline]

Definition at line 133 of file loc.hxx.

Here is the call graph for this function:

template<class GM, class ACC>
void opengm::LOC< GM, ACC >::setStartingPoint ( typename std::vector< LabelType >::const_iterator  begin  )  [virtual]

set initial labeling

Parameters:
begin iterator to the beginning of a sequence of labels

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

template<class GM , class ACC >
LOC< GM, ACC >::ValueType opengm::LOC< GM, ACC >::value (  )  const [inline, virtual]

return the solution (value)

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

Definition at line 169 of file loc.hxx.

Here is the call graph for this function:


Member Data Documentation

template<class GM, class ACC>
opengm::LOC< GM, ACC >::OPENGM_GM_TYPE_TYPEDEFS

Definition at line 36 of file loc.hxx.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Mon Jun 17 16:31:12 2013 for OpenGM by  doxygen 1.6.3