54 template < GUM_Numeric GUM_SCALAR >
61 template < GUM_Numeric GUM_SCALAR >
66 template < GUM_Numeric GUM_SCALAR >
71 template < GUM_Numeric GUM_SCALAR >
76 template < GUM_Numeric GUM_SCALAR >
80 bool& stop_iteration)
const {
83 stop_iteration =
true;
89 template < GUM_Numeric GUM_SCALAR >
94 template < GUM_Numeric GUM_SCALAR >
Base class for discrete random variable.
Size domainSize() const override
const DiscreteVariable & variable(Idx i) const override
std::string aggregatorName() const final
Returns the scalar parameter of this aggregator, if it has one.
MultiDimContainer< GUM_SCALAR > * newFactory() const final
This method creates a clone of this object, without its content (including variable),...
Idx neutralElt_() const final
neutralElt_() is the result value for the first application of fold_
Idx fold_(const DiscreteVariable &v, Idx i1, Idx i2, bool &stop_iteration) const final
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.