56 template < GUM_Numeric GUM_SCALAR >
58 GUM_CONSTRUCTOR(
Count);
61 template < GUM_Numeric GUM_SCALAR >
68 template < GUM_Numeric GUM_SCALAR >
70 GUM_DESTRUCTOR(
Count);
73 template < GUM_Numeric GUM_SCALAR >
78 template < GUM_Numeric GUM_SCALAR >
82 bool& stop_iteration)
const {
83 return (i1 ==
_value_) ? 1 + i2 : i2;
86 template < GUM_Numeric GUM_SCALAR >
88 return std::format(
"count[{}]",
_value_);
91 template < GUM_Numeric GUM_SCALAR >
96 template < GUM_Numeric GUM_SCALAR >
Base class for discrete random variable.
std::string aggregatorName() const override
Returns the scalar parameter of this aggregator, if it has one.
std::optional< Idx > value() const override
Returns the scalar parameter of this aggregator, if it has one.
MultiDimContainer< GUM_SCALAR > * newFactory() const override
This method creates a clone of this object, withouth its content (including variable),...
Idx fold_(const DiscreteVariable &v, Idx i1, Idx i2, bool &stop_iteration) const override
fold_ is applied on value i1 for variable v. the actual result for precedent applications is i2.
Idx neutralElt_() const override
neutralElt_() is the result value for the first application of fold_
Size Idx
Type for indexes.
Aggregators are functional description of CPTs.
gum is the global namespace for all aGrUM entities