55 template <
typename GUM_SCALAR >
61 template <
typename GUM_SCALAR >
67 template <
typename GUM_SCALAR >
72 template <
typename GUM_SCALAR >
77 template <
typename GUM_SCALAR >
81 bool& stop_iteration)
const {
84 if ((i1 + i2) > max_val) {
85 stop_iteration =
true;
91 template <
typename GUM_SCALAR >
96 template <
typename GUM_SCALAR >
Base class for discrete random variable.
Abstract base class for all multi dimensionnal containers.
virtual Size domainSize() const override
Returns the product of the variables domain size.
const DiscreteVariable & variable(Idx i) const override
Returns a const ref to the ith var.
MultiDimAggregator()
Default constructor.
bool decomposable_
decomposable_ indicates if the aggregator can be decomposed
virtual Idx neutralElt_() const
neutralElt_() is the result value for the first application of fold_
virtual MultiDimContainer< GUM_SCALAR > * newFactory() const
This method creates a clone of this object, without its content (including variable),...
virtual std::string aggregatorName() const
virtual Idx fold_(const DiscreteVariable &v, Idx i1, Idx i2, bool &stop_iteration) const
fold_ is applied on value i1 for variable v. the actual result for precedent applications is i2.
Size Idx
Type for indexes.
Aggregators are functional description of CPTs.
gum is the global namespace for all aGrUM entities