![]() |
aGrUM
0.16.0
|
<agrum/FMDP/learning/datastructure/leaves/abstractLeaf.h> More...
#include <abstractLeaf.h>
Public Member Functions | |
virtual double | effectif (Idx) const =0 |
Gaves the leaf effectif for given modality. More... | |
virtual double | total () const =0 |
virtual bool | contains (NodeId testedId) const |
Returns true if abstractleaf has leaf in it. More... | |
NodeId | id () |
virtual Idx | nbModa () const =0 |
virtual std::string | toString ()=0 |
Constructor & destructor. | |
AbstractLeaf (NodeId leafId) | |
Default constructor. More... | |
virtual | ~AbstractLeaf () |
Default destructor. More... | |
void * | operator new (size_t s) |
Allocators and Deallocators redefinition. More... | |
void | operator delete (void *p) |
Default constructor. More... | |
<agrum/FMDP/learning/datastructure/leaves/abstractLeaf.h>
Abstract Class implementing a Leaf
Definition at line 53 of file abstractLeaf.h.
|
inline |
Default constructor.
Definition at line 63 of file abstractLeaf.h.
|
inlinevirtual |
Default destructor.
Definition at line 70 of file abstractLeaf.h.
Returns true if abstractleaf has leaf in it.
Reimplemented in gum::ComposedLeaf.
Definition at line 93 of file abstractLeaf.h.
References __leafId.
Referenced by gum::ComposedLeaf::contains(), gum::LeafPair::contains(), and gum::LeafAggregator::update().
Gaves the leaf effectif for given modality.
Implemented in gum::ConcreteLeaf< AttributeSelection, isScalar >, and gum::ComposedLeaf.
Referenced by gum::IMDDI< AttributeSelection, isScalar >::__insertLeafInFunctionGraph(), gum::ComposedLeaf::effectif(), operator delete(), and gum::LeafPair::updateLikelyhood().
|
inline |
Definition at line 95 of file abstractLeaf.h.
References __leafId, nbModa(), and toString().
Referenced by gum::ComposedLeaf::toString(), gum::ConcreteLeaf< AttributeSelection, isScalar >::toString(), and gum::LeafAggregator::updateLeaf().
|
pure virtual |
Implemented in gum::ConcreteLeaf< AttributeSelection, isScalar >, and gum::ComposedLeaf.
Referenced by gum::IMDDI< AttributeSelection, isScalar >::__insertLeafInFunctionGraph(), id(), gum::LeafPair::likelyhood(), gum::ComposedLeaf::nbModa(), and gum::LeafPair::updateLikelyhood().
|
inline |
Default constructor.
Definition at line 78 of file abstractLeaf.h.
References gum::SmallObjectAllocator::deallocate(), effectif(), gum::SmallObjectAllocator::instance(), and total().
|
inline |
Allocators and Deallocators redefinition.
Definition at line 75 of file abstractLeaf.h.
References gum::SmallObjectAllocator::allocate(), and gum::SmallObjectAllocator::instance().
|
pure virtual |
Implemented in gum::ConcreteLeaf< AttributeSelection, isScalar >, and gum::ComposedLeaf.
Referenced by id(), gum::ComposedLeaf::toString(), and gum::LeafPair::toString().
|
pure virtual |
Implemented in gum::ConcreteLeaf< AttributeSelection, isScalar >, and gum::ComposedLeaf.
Referenced by gum::IMDDI< AttributeSelection, isScalar >::__insertLeafInFunctionGraph(), operator delete(), gum::ComposedLeaf::total(), and gum::LeafPair::updateLikelyhood().
|
private |
Definition at line 102 of file abstractLeaf.h.
Referenced by contains(), and id().