39 namespace aggregator {
40 template <
typename GUM_SCALAR >
46 template <
typename GUM_SCALAR >
53 template <
typename GUM_SCALAR >
58 template <
typename GUM_SCALAR >
65 template <
typename GUM_SCALAR >
71 template <
typename GUM_SCALAR >
74 if (i.
nbrDim() < 2)
return 0;
79 for (
Idx j = 2; j < this->
nbrDim(); j++) {
87 template <
typename GUM_SCALAR >
91 bool& stop_iteration)
const {
Idx nbrDim() const final
Returns the number of variables in the Instantiation.
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...
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Base class for discrete random variable.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Abstract base class for all multi dimensionnal containers.
<agrum/multidim/aggregators/multiDimAggregator.h>
Idx val(Idx i) const
Returns the current value of the variable at position i.
virtual MultiDimContainer< GUM_SCALAR > * newFactory() const
This method creates a clone of this object, withouth its content (including variable), you must use this method if you want to ensure that the generated object has the same type than the object containing the called newFactory() For example :
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
virtual Idx nbrDim() const override
Returns the number of vars in the multidimensional container.
Class for assigning/browsing values to tuples of discrete variables.
Size Idx
Type for indexes.
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