![]() |
aGrUM 3.0.0
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) |
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 59 of file aggregatorDecomposition_tpl.h.
References AggregatorDecomposition().
Referenced by AggregatorDecomposition(), and ~AggregatorDecomposition().
|
virtual |
Destructor.
Definition at line 64 of file aggregatorDecomposition_tpl.h.
References AggregatorDecomposition().
|
protected |
Definition at line 83 of file aggregatorDecomposition_tpl.h.
References GUM_ERROR, and gum::toLower().
Referenced by addDepthLayer_(), and decomposeAggregator_().
|
protected |
Definition at line 249 of file aggregatorDecomposition_tpl.h.
References addAggregator_(), addDepthLayer_(), getMaximumArity(), GUM_ERROR, gum::LABELIZED, gum::RangeVariable::maxVal(), gum::RangeVariable::minVal(), gum::List< Val >::push_back(), gum::RANGE, and gum::Set< Key >::size().
Referenced by addDepthLayer_(), and decomposeAggregator_().
|
protected |
Definition at line 117 of file aggregatorDecomposition_tpl.h.
References addAggregator_(), addDepthLayer_(), getMaximumArity(), GUM_ERROR, gum::LABELIZED, gum::RangeVariable::maxVal(), gum::RangeVariable::minVal(), 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 70 of file aggregatorDecomposition_tpl.h.
References decomposeAggregator_(), and gum::aggregator::MultiDimAggregator< GUM_ELEMENT >::isDecomposable().
| gum::Size gum::AggregatorDecomposition< GUM_SCALAR >::getMaximumArity | ( | ) |
Definition at line 375 of file aggregatorDecomposition_tpl.h.
References _arity_.
Referenced by addDepthLayer_(), and decomposeAggregator_().
|
virtual |
Definition at line 380 of file aggregatorDecomposition_tpl.h.
| void gum::AggregatorDecomposition< GUM_SCALAR >::setMaximumArity | ( | gum::Size | arity | ) |
Definition at line 369 of file aggregatorDecomposition_tpl.h.
|
private |
Definition at line 111 of file aggregatorDecomposition.h.
Referenced by getMaximumArity(), and setMaximumArity().