60 template <
typename GUM_SCALAR >
65 template <
typename GUM_SCALAR >
71 template <
typename GUM_SCALAR >
76 template <
typename GUM_SCALAR >
83 template <
typename GUM_SCALAR >
88 template <
typename GUM_SCALAR >
91 if (i.
nbrDim() < 2)
return 0;
96 for (
Idx j = 2; j < this->
nbrDim(); j++) {
104 template <
typename GUM_SCALAR >
108 bool& stop_iteration)
const {
Base class for discrete random variable.
Class for assigning/browsing values to tuples of discrete variables.
Idx val(Idx i) const
Returns the current value of the variable at position i.
Idx nbrDim() const final
Returns the number of variables in the Instantiation.
Abstract base class for all multi dimensionnal containers.
virtual Idx nbrDim() const override
Returns the number of vars in the multidimensional container.
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.
virtual MultiDimContainer< GUM_SCALAR > * newFactory() const
This method creates a clone of this object, withouth its content (including variable),...
virtual Idx buildValue_(const gum::Instantiation &i) const
by default, buildValue_ uses a "fold" scheme and the user has to implement neutralElt_ and fold_ but ...
virtual std::string aggregatorName() const
MultiDimAggregator()
Default constructor.
Size Idx
Type for indexes.
Aggregators are functional description of CPTs.
gum is the global namespace for all aGrUM entities