51#ifndef GUM_CONCRETE_LEAF_H
52#define GUM_CONCRETE_LEAF_H
73 template < TESTNAME AttributeSelection,
bool isScalar >
106 void operator delete(
void* p) {
136 std::stringstream ss;
137 ss <<
"{ Id : " << this->
id() <<
"}";
Headers of the abstract Leaf class.
AbstractLeaf(NodeId leafId)
Default constructor.
const Sequence< ValueType > * _valueDomain_
virtual double total() const
Idx _nbModa_(Int2Type< false >) const
virtual double effectif(Idx moda) const
Gaves the leaf effectif for given modality.
NodeDatabase< AttributeSelection, isScalar > * _n1_
typename ValueSelect< isScalar, double, Idx >::type ValueType
double _effectif_(Idx moda, Int2Type< false >) const
double _effectif_(Idx moda, Int2Type< true >) const
Idx _nbModa_(Int2Type< true >) const
~ConcreteLeaf()
Default destructor.
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.
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.