aGrUM  0.20.3
a C++ library for (probabilistic) graphical models
gum::prm::StructuredInference< GUM_SCALAR >::RGData Struct Reference

Private structure to represent data about a reduced graph. More...

+ Collaboration diagram for gum::prm::StructuredInference< GUM_SCALAR >::RGData:

Public Attributes

UndiGraph reducedGraph
 The reduced graph. More...
 
NodeProperty< Sizemods
 Mapping between NodeId and modalities. More...
 
Bijection< const DiscreteVariable *, NodeIdvar2node
 Mapping between DiscreteVariable and NodeId. More...
 
Set< Potential< GUM_SCALAR > *> pool
 The pool of potentials matching the reduced graph. More...
 
List< NodeSetpartial_order
 Partial order used for triangulation, first is outputs nodes, second query nodes. More...
 

Public Member Functions

 RGData ()
 Default constructor. More...
 
 ~RGData ()
 Destructor. More...
 
NodeSetoutputs ()
 Returns the set of outputs nodes (which will be eliminated). More...
 
NodeSetqueries ()
 Returns the set of query nodes (which will not be eliminated). More...
 

Detailed Description

template<typename GUM_SCALAR>
struct gum::prm::StructuredInference< GUM_SCALAR >::RGData

Private structure to represent data about a reduced graph.

Definition at line 128 of file structuredInference.h.

Constructor & Destructor Documentation

◆ RGData()

template<typename GUM_SCALAR >
gum::prm::StructuredInference< GUM_SCALAR >::RGData::RGData ( )

Default constructor.

Definition at line 763 of file structuredInference_tpl.h.

References gum::prm::ParamScopeData< GUM_SCALAR >::ParamScopeData().

763  {
764  GUM_CONSTRUCTOR(StructuredInference< GUM_SCALAR >::RGData);
765  partial_order.insert(NodeSet());
766  partial_order.insert(NodeSet());
767  }
List< NodeSet > partial_order
Partial order used for triangulation, first is outputs nodes, second query nodes. ...
Set< NodeId > NodeSet
Some typdefs and define for shortcuts ...
+ Here is the call graph for this function:

◆ ~RGData()

template<typename GUM_SCALAR >
INLINE gum::prm::StructuredInference< GUM_SCALAR >::RGData::~RGData ( )

Destructor.

Definition at line 948 of file structuredInference_tpl.h.

References gum::prm::ParamScopeData< GUM_SCALAR >::ParamScopeData().

948  {
949  GUM_DESTRUCTOR(StructuredInference< GUM_SCALAR >::RGData);
950  }
+ Here is the call graph for this function:

Member Function Documentation

◆ outputs()

template<typename GUM_SCALAR >
NodeSet& gum::prm::StructuredInference< GUM_SCALAR >::RGData::outputs ( )
inline

Returns the set of outputs nodes (which will be eliminated).

Definition at line 145 of file structuredInference.h.

145 { return partial_order[0]; }
List< NodeSet > partial_order
Partial order used for triangulation, first is outputs nodes, second query nodes. ...

◆ queries()

template<typename GUM_SCALAR >
NodeSet& gum::prm::StructuredInference< GUM_SCALAR >::RGData::queries ( )
inline

Returns the set of query nodes (which will not be eliminated).

Definition at line 147 of file structuredInference.h.

147 { return partial_order[1]; }
List< NodeSet > partial_order
Partial order used for triangulation, first is outputs nodes, second query nodes. ...

Member Data Documentation

◆ mods

template<typename GUM_SCALAR >
NodeProperty< Size > gum::prm::StructuredInference< GUM_SCALAR >::RGData::mods

Mapping between NodeId and modalities.

Definition at line 132 of file structuredInference.h.

◆ partial_order

template<typename GUM_SCALAR >
List< NodeSet > gum::prm::StructuredInference< GUM_SCALAR >::RGData::partial_order

Partial order used for triangulation, first is outputs nodes, second query nodes.

Definition at line 139 of file structuredInference.h.

◆ pool

template<typename GUM_SCALAR >
Set< Potential< GUM_SCALAR >* > gum::prm::StructuredInference< GUM_SCALAR >::RGData::pool

The pool of potentials matching the reduced graph.

Definition at line 136 of file structuredInference.h.

◆ reducedGraph

template<typename GUM_SCALAR >
UndiGraph gum::prm::StructuredInference< GUM_SCALAR >::RGData::reducedGraph

The reduced graph.

Definition at line 130 of file structuredInference.h.

◆ var2node

template<typename GUM_SCALAR >
Bijection< const DiscreteVariable*, NodeId > gum::prm::StructuredInference< GUM_SCALAR >::RGData::var2node

Mapping between DiscreteVariable and NodeId.

Definition at line 134 of file structuredInference.h.


The documentation for this struct was generated from the following files: