27 #ifndef GUM_AMPLITUDE_AGGREGATOR_H 28 #define GUM_AMPLITUDE_AGGREGATOR_H 34 namespace aggregator {
51 template <
typename GUM_SCALAR >
89 bool& stop_iteration)
const;
96 #ifndef GUM_NO_EXTERN_TEMPLATE_CLASS 105 #endif // GUM_AMPLITUDE_AGGREGATOR_H virtual Idx _neutralElt() const
_neutralElt() is the result value for the first application of _fold
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...
Base class for discrete random variable.
gum is the global namespace for all aGrUM entities
Abstract base class for all multi dimensionnal containers.
<agrum/multidim/aggregators/multiDimAggregator.h>
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 :
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