51#ifndef GUM_CONCRETE_LEAF_H
52#define GUM_CONCRETE_LEAF_H
73 template < TESTNAME AttributeSelection,
bool isScalar >
98 void*
operator new(
size_t s);
100 void operator delete(
void* p);
115 double total()
const override;
Headers of the abstract Leaf class.
AbstractLeaf(NodeId leafId)
Default constructor.
const Sequence< ValueType > * _valueDomain_
std::string toString() override
NodeDatabase< AttributeSelection, isScalar > * _n1_
double total() const override
typename ValueSelect< isScalar, double, Idx >::type ValueType
double _effectif_(Idx moda, Int2Type< true >) const
~ConcreteLeaf() override
Default destructor.
Idx _nbModa_(Int2Type< true >) const
double effectif(Idx moda) const override
Gaves the leaf effectif for given modality.
Idx nbModa() const override
ConcreteLeaf(NodeId leafId, NodeDatabase< AttributeSelection, isScalar > *n1, const Sequence< ValueType > *valueDomain)
Default constructor.
<agrum/FMDP/learning/datastructure/nodeDatabase.h>
Size Idx
Type for indexes.
Size NodeId
Type for node ids.
gum is the global namespace for all aGrUM entities
Headers of the NodeDatabase class.