![]() |
aGrUM 3.3.2
a C++ library for (probabilistic) graphical models
|
<agrum/BN/inference/tools/aggregatorDecomposition.h> More...
#include <aggregatorDecomposition.h>
Public Member Functions | |
Constructor & destructor. | |
| AggregatorDecomposition () | |
| Default constructor. | |
| virtual | ~AggregatorDecomposition () |
| Destructor. | |
| BayesNet< GUM_SCALAR > & | getDecomposedAggregator (BayesNet< GUM_SCALAR > &bn) |
| Default constructor. | |
Getters & setters. | |
| virtual std::string | name () const |
| gum::Size | getMaximumArity () |
| void | setMaximumArity (gum::Size arity) |
Protected Member Functions | |
Private evidence handling methods and members. | |
| NodeId | addAggregator_ (BayesNet< GUM_SCALAR > &bn, std::string_view aggType, const DiscreteVariable &var, Idx value) |
| BayesNet< GUM_SCALAR > & | decomposeAggregator_ (BayesNet< GUM_SCALAR > &bn, NodeId node) |
| Set< NodeId > | addDepthLayer_ (BayesNet< GUM_SCALAR > &bn, Set< NodeId > nodes, NodeId initialAggregator, int &j) |
Static Private Member Functions | |
| static void | _resetBounds_ (const std::string &aggType, long &minVal, long &maxVal) |
| bounds of a RANGE intermediate aggregator without parent: the identity element of aggType (+infinity for min, -infinity for max, 0 otherwise) | |
| static void | _accumulateBounds_ (const std::string &aggType, const DiscreteVariable &v, long &minVal, long &maxVal) |
| updates the bounds of a RANGE intermediate aggregator with those of a new (numerical) parent v, according to aggType (min/max of the bounds for min/max, sum of the bounds otherwise) | |
Private Attributes | |
| Size | _arity_ = Size(2) |
<agrum/BN/inference/tools/aggregatorDecomposition.h>
This class is used to decompose aggregator in PRM<GUM_SCALAR>.
Definition at line 63 of file aggregatorDecomposition.h.
| gum::AggregatorDecomposition< GUM_SCALAR >::AggregatorDecomposition | ( | ) |
Default constructor.
Definition at line 93 of file aggregatorDecomposition_tpl.h.
References AggregatorDecomposition().
Referenced by AggregatorDecomposition(), and ~AggregatorDecomposition().
|
virtual |
Destructor.
Definition at line 98 of file aggregatorDecomposition_tpl.h.
References AggregatorDecomposition().
|
staticprivate |
updates the bounds of a RANGE intermediate aggregator with those of a new (numerical) parent v, according to aggType (min/max of the bounds for min/max, sum of the bounds otherwise)
Definition at line 71 of file aggregatorDecomposition_tpl.h.
References gum::DiscreteVariable::domainSize(), gum::DiscreteVariable::isNumerical(), and gum::DiscreteVariable::numerical().
Referenced by addDepthLayer_(), and decomposeAggregator_().
|
staticprivate |
bounds of a RANGE intermediate aggregator without parent: the identity element of aggType (+infinity for min, -infinity for max, 0 otherwise)
Definition at line 62 of file aggregatorDecomposition_tpl.h.
Referenced by addDepthLayer_(), and decomposeAggregator_().
|
protected |
Definition at line 117 of file aggregatorDecomposition_tpl.h.
Referenced by addDepthLayer_(), and decomposeAggregator_().
|
protected |
Definition at line 246 of file aggregatorDecomposition_tpl.h.
References _accumulateBounds_(), _resetBounds_(), addAggregator_(), addDepthLayer_(), getMaximumArity(), GUM_ERROR, gum::LABELIZED, gum::List< Val >::push_back(), gum::RANGE, and gum::Set< Key >::size().
Referenced by addDepthLayer_(), and decomposeAggregator_().
|
protected |
Definition at line 126 of file aggregatorDecomposition_tpl.h.
References _accumulateBounds_(), _resetBounds_(), addAggregator_(), addDepthLayer_(), getMaximumArity(), GUM_ERROR, gum::LABELIZED, gum::List< Val >::push_back(), gum::RANGE, and gum::Set< Key >::size().
Referenced by getDecomposedAggregator().
| BayesNet< GUM_SCALAR > & gum::AggregatorDecomposition< GUM_SCALAR >::getDecomposedAggregator | ( | BayesNet< GUM_SCALAR > & | bn | ) |
Default constructor.
Definition at line 104 of file aggregatorDecomposition_tpl.h.
References decomposeAggregator_(), and gum::aggregator::MultiDimAggregator< GUM_ELEMENT >::isDecomposable().
| gum::Size gum::AggregatorDecomposition< GUM_SCALAR >::getMaximumArity | ( | ) |
Definition at line 360 of file aggregatorDecomposition_tpl.h.
References _arity_.
Referenced by addDepthLayer_(), and decomposeAggregator_().
|
virtual |
Definition at line 365 of file aggregatorDecomposition_tpl.h.
| void gum::AggregatorDecomposition< GUM_SCALAR >::setMaximumArity | ( | gum::Size | arity | ) |
Definition at line 354 of file aggregatorDecomposition_tpl.h.
|
private |
Definition at line 111 of file aggregatorDecomposition.h.
Referenced by getMaximumArity(), and setMaximumArity().