![]() |
aGrUM
0.20.3
a C++ library for (probabilistic) graphical models
|
Private structure to represent data about a pattern. More...
Public Attributes | |
const gspan::Pattern & | pattern |
The pattern for which this represents data about it. More... | |
GSpan< GUM_SCALAR >::MatchedInstances & | matches |
A reference over the usable matches of pattern. More... | |
UndiGraph | graph |
A yet to be triangulated undigraph. More... | |
NodeProperty< Size > | mod |
The pattern's variables modalities. More... | |
Bijection< NodeId, std::string > | node2attr |
A bijection to easily keep track between graph and attributes, its of the form instance_name DOT attr_name. More... | |
NodeProperty< std::pair< Idx, std::string > > | map |
To ease translating potentials from one match to another. More... | |
Bijection< NodeId, const DiscreteVariable *> | vars |
Bijection between graph's nodes and their corresponding DiscreteVariable, for inference purpose. More... | |
NodeProperty< Potential< GUM_SCALAR > *> | pots |
To handle barren nodes. More... | |
Set< NodeId > | barren |
Set of barren nodes. More... | |
Public Member Functions | |
PData (const gspan::Pattern &p, typename GSpan< GUM_SCALAR >::MatchedInstances &m) | |
Default constructor. More... | |
PData (const PData &source) | |
Copy constructor. More... | |
~PData () | |
Destructor. More... | |
NodeSet & | inners () |
Returns the set of inner nodes. More... | |
NodeSet & | obs () |
Returns the set of inner and observed nodes given all the matches of pattern. More... | |
NodeSet & | outputs () |
Returns the set of outputs nodes given all the matches of pattern. More... | |
NodeSet & | queries () |
Returns the set of queried nodes given all the matches of pattern. More... | |
const List< NodeSet > * | partial_order () |
Private structure to represent data about a pattern.
Definition at line 151 of file structuredInference.h.
gum::prm::StructuredInference< GUM_SCALAR >::PData::PData | ( | const gspan::Pattern & | p, |
typename GSpan< GUM_SCALAR >::MatchedInstances & | m | ||
) |
Default constructor.
Definition at line 770 of file structuredInference_tpl.h.
References gum::prm::ParamScopeData< GUM_SCALAR >::ParamScopeData().
gum::prm::StructuredInference< GUM_SCALAR >::PData::PData | ( | const PData & | source | ) |
Copy constructor.
INLINE gum::prm::StructuredInference< GUM_SCALAR >::PData::~PData | ( | ) |
Destructor.
Definition at line 953 of file structuredInference_tpl.h.
References gum::prm::ParamScopeData< GUM_SCALAR >::ParamScopeData().
|
inline |
Returns the set of inner nodes.
Definition at line 183 of file structuredInference.h.
|
inline |
Returns the set of inner and observed nodes given all the matches of pattern.
Definition at line 186 of file structuredInference.h.
|
inline |
Returns the set of outputs nodes given all the matches of pattern.
Definition at line 188 of file structuredInference.h.
const List< NodeSet > * gum::prm::StructuredInference< GUM_SCALAR >::PData::partial_order | ( | ) |
Definition at line 791 of file structuredInference_tpl.h.
References gum::prm::ParamScopeData< GUM_SCALAR >::ParamScopeData().
|
inline |
Returns the set of queried nodes given all the matches of pattern.
Definition at line 190 of file structuredInference.h.
|
private |
We'll use a PartialOrderedTriangulation with three sets: output, nodes and obs with children outside the pattern and the other nodes.
Definition at line 203 of file structuredInference.h.
|
private |
A copy of partial_order without empty sets.
Definition at line 205 of file structuredInference.h.
Set< NodeId > gum::prm::StructuredInference< GUM_SCALAR >::PData::barren |
Set of barren nodes.
Definition at line 175 of file structuredInference.h.
UndiGraph gum::prm::StructuredInference< GUM_SCALAR >::PData::graph |
A yet to be triangulated undigraph.
Definition at line 157 of file structuredInference.h.
NodeProperty< std::pair< Idx, std::string > > gum::prm::StructuredInference< GUM_SCALAR >::PData::map |
To ease translating potentials from one match to another.
Definition at line 166 of file structuredInference.h.
GSpan< GUM_SCALAR >::MatchedInstances& gum::prm::StructuredInference< GUM_SCALAR >::PData::matches |
A reference over the usable matches of pattern.
Definition at line 155 of file structuredInference.h.
NodeProperty< Size > gum::prm::StructuredInference< GUM_SCALAR >::PData::mod |
The pattern's variables modalities.
Definition at line 159 of file structuredInference.h.
Bijection< NodeId, std::string > gum::prm::StructuredInference< GUM_SCALAR >::PData::node2attr |
A bijection to easily keep track between graph and attributes, its of the form instance_name DOT attr_name.
Definition at line 164 of file structuredInference.h.
const gspan::Pattern& gum::prm::StructuredInference< GUM_SCALAR >::PData::pattern |
The pattern for which this represents data about it.
Definition at line 153 of file structuredInference.h.
NodeProperty< Potential< GUM_SCALAR >* > gum::prm::StructuredInference< GUM_SCALAR >::PData::pots |
To handle barren nodes.
Definition at line 173 of file structuredInference.h.
Bijection< NodeId, const DiscreteVariable* > gum::prm::StructuredInference< GUM_SCALAR >::PData::vars |
Bijection between graph's nodes and their corresponding DiscreteVariable, for inference purpose.
Definition at line 171 of file structuredInference.h.