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

#include <intersection_based_inf.hxx>

+ Collaboration diagram for opengm::proposal_gen::RandMcClusterOp< GM, ACC >:

Classes

struct  Parameter
 

Public Types

typedef ACC AccumulationType
 
typedef GM GraphicalModelType
 
typedef vigra::AdjacencyListGraph Graph
 
typedef vigra::MergeGraphAdaptor< GraphMergeGraph
 
typedef WeightRandomization< ValueType > WeightRand
 
typedef WeightRand::Parameter WeightRandomizationParam
 
typedef MergeGraph::Edge Edge
 
typedef ValueType WeightType
 
typedef IndexType index_type
 

Public Member Functions

 RandMcClusterOp (const Graph &graph, MergeGraph &mergegraph, const Parameter &param)
 
void reset ()
 
void setWeights (const std::vector< ValueType > &weights, const std::vector< LabelType > &labels)
 
Edge contractionEdge ()
 
WeightType contractionWeight ()
 get the edge weight of the edge which should be contracted next More...
 
MergeGraphmergeGraph ()
 get a reference to the merge More...
 
bool done () const
 
void mergeEdges (const Edge &a, const Edge &b)
 
void eraseEdge (const Edge &edge)
 

Public Attributes

 OPENGM_GM_TYPE_TYPEDEFS
 
const Graphgraph_
 
MergeGraphmergeGraph_
 
vigra::ChangeablePriorityQueue< ValueType,std::greater< ValueType > > pq_
 
Parameter param_
 
size_t nodeStopNum_
 
std::vector< ValueType > rWeights_
 
WeightRand wRandomizer_
 

Detailed Description

template<class GM, class ACC>
class opengm::proposal_gen::RandMcClusterOp< GM, ACC >

Definition at line 289 of file intersection_based_inf.hxx.

Member Typedef Documentation

template<class GM , class ACC >
typedef ACC opengm::proposal_gen::RandMcClusterOp< GM, ACC >::AccumulationType

Definition at line 291 of file intersection_based_inf.hxx.

template<class GM , class ACC >
typedef MergeGraph::Edge opengm::proposal_gen::RandMcClusterOp< GM, ACC >::Edge

Definition at line 302 of file intersection_based_inf.hxx.

template<class GM , class ACC >
typedef vigra::AdjacencyListGraph opengm::proposal_gen::RandMcClusterOp< GM, ACC >::Graph

Definition at line 295 of file intersection_based_inf.hxx.

template<class GM , class ACC >
typedef GM opengm::proposal_gen::RandMcClusterOp< GM, ACC >::GraphicalModelType

Definition at line 292 of file intersection_based_inf.hxx.

template<class GM , class ACC >
typedef IndexType opengm::proposal_gen::RandMcClusterOp< GM, ACC >::index_type

Definition at line 304 of file intersection_based_inf.hxx.

template<class GM , class ACC >
typedef vigra::MergeGraphAdaptor< Graph > opengm::proposal_gen::RandMcClusterOp< GM, ACC >::MergeGraph

Definition at line 296 of file intersection_based_inf.hxx.

template<class GM , class ACC >
typedef WeightRandomization<ValueType> opengm::proposal_gen::RandMcClusterOp< GM, ACC >::WeightRand

Definition at line 299 of file intersection_based_inf.hxx.

template<class GM , class ACC >
typedef WeightRand::Parameter opengm::proposal_gen::RandMcClusterOp< GM, ACC >::WeightRandomizationParam

Definition at line 300 of file intersection_based_inf.hxx.

template<class GM , class ACC >
typedef ValueType opengm::proposal_gen::RandMcClusterOp< GM, ACC >::WeightType

Definition at line 303 of file intersection_based_inf.hxx.

Constructor & Destructor Documentation

template<class GM , class ACC >
opengm::proposal_gen::RandMcClusterOp< GM, ACC >::RandMcClusterOp ( const Graph graph,
MergeGraph mergegraph,
const Parameter param 
)
inline

Definition at line 333 of file intersection_based_inf.hxx.

Member Function Documentation

template<class GM , class ACC >
Edge opengm::proposal_gen::RandMcClusterOp< GM, ACC >::contractionEdge ( )
inline

Definition at line 390 of file intersection_based_inf.hxx.

template<class GM , class ACC >
WeightType opengm::proposal_gen::RandMcClusterOp< GM, ACC >::contractionWeight ( )
inline

get the edge weight of the edge which should be contracted next

Definition at line 400 of file intersection_based_inf.hxx.

template<class GM , class ACC >
bool opengm::proposal_gen::RandMcClusterOp< GM, ACC >::done ( ) const
inline

Definition at line 415 of file intersection_based_inf.hxx.

template<class GM , class ACC >
void opengm::proposal_gen::RandMcClusterOp< GM, ACC >::eraseEdge ( const Edge edge)
inline

Definition at line 427 of file intersection_based_inf.hxx.

template<class GM , class ACC >
void opengm::proposal_gen::RandMcClusterOp< GM, ACC >::mergeEdges ( const Edge a,
const Edge b 
)
inline

Definition at line 421 of file intersection_based_inf.hxx.

template<class GM , class ACC >
MergeGraph& opengm::proposal_gen::RandMcClusterOp< GM, ACC >::mergeGraph ( )
inline

get a reference to the merge

Definition at line 411 of file intersection_based_inf.hxx.

template<class GM , class ACC >
void opengm::proposal_gen::RandMcClusterOp< GM, ACC >::reset ( )
inline

Definition at line 362 of file intersection_based_inf.hxx.

+ Here is the caller graph for this function:

template<class GM , class ACC >
void opengm::proposal_gen::RandMcClusterOp< GM, ACC >::setWeights ( const std::vector< ValueType > &  weights,
const std::vector< LabelType > &  labels 
)
inline

Definition at line 367 of file intersection_based_inf.hxx.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

template<class GM , class ACC >
const Graph& opengm::proposal_gen::RandMcClusterOp< GM, ACC >::graph_

Definition at line 431 of file intersection_based_inf.hxx.

template<class GM , class ACC >
MergeGraph& opengm::proposal_gen::RandMcClusterOp< GM, ACC >::mergeGraph_

Definition at line 432 of file intersection_based_inf.hxx.

template<class GM , class ACC >
size_t opengm::proposal_gen::RandMcClusterOp< GM, ACC >::nodeStopNum_

Definition at line 435 of file intersection_based_inf.hxx.

template<class GM , class ACC >
opengm::proposal_gen::RandMcClusterOp< GM, ACC >::OPENGM_GM_TYPE_TYPEDEFS

Definition at line 293 of file intersection_based_inf.hxx.

template<class GM , class ACC >
Parameter opengm::proposal_gen::RandMcClusterOp< GM, ACC >::param_

Definition at line 434 of file intersection_based_inf.hxx.

template<class GM , class ACC >
vigra::ChangeablePriorityQueue< ValueType ,std::greater<ValueType> > opengm::proposal_gen::RandMcClusterOp< GM, ACC >::pq_

Definition at line 433 of file intersection_based_inf.hxx.

template<class GM , class ACC >
std::vector<ValueType> opengm::proposal_gen::RandMcClusterOp< GM, ACC >::rWeights_

Definition at line 436 of file intersection_based_inf.hxx.

template<class GM , class ACC >
WeightRand opengm::proposal_gen::RandMcClusterOp< GM, ACC >::wRandomizer_

Definition at line 437 of file intersection_based_inf.hxx.