48 template < TESTNAME AttributeSelection,
bool isScalar >
57 template < TESTNAME AttributeSelection,
bool isScalar >
63 template < TESTNAME AttributeSelection,
bool isScalar >
68 template < TESTNAME AttributeSelection,
bool isScalar >
73 template < TESTNAME AttributeSelection,
bool isScalar >
78 template < TESTNAME AttributeSelection,
bool isScalar >
84 template < TESTNAME AttributeSelection,
bool isScalar >
87 return (
double)
_n1_->effectif(moda);
90 template < TESTNAME AttributeSelection,
bool isScalar >
95 template < TESTNAME AttributeSelection,
bool isScalar >
100 template < TESTNAME AttributeSelection,
bool isScalar >
105 template < TESTNAME AttributeSelection,
bool isScalar >
107 return _n1_->valueDomain();
110 template < TESTNAME AttributeSelection,
bool isScalar >
112 return std::format(
"{{ Id : {}}}", this->
id());
AbstractLeaf(NodeId leafId)
Default constructor.
const Sequence< ValueType > * _valueDomain_
std::string toString() override
NodeDatabase< AttributeSelection, isScalar > * _n1_
double total() const override
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>
static SmallObjectAllocator & instance()
void * allocate(const size_t &objectSize)
Allocates a block.
void deallocate(void *pDeallocatedObject, const size_t &objectSize)
Deallocates an object.
Headers of the Concrete Leaf class.
Size Idx
Type for indexes.
Size NodeId
Type for node ids.
gum is the global namespace for all aGrUM entities