![]() |
aGrUM 3.1.1
a C++ library for (probabilistic) graphical models
|
<agrum/FMDP/learning/datastructure/leaves/concreteLeaf.h> More...
#include <concreteLeaf.h>
Public Member Functions | |
| double | effectif (Idx moda) const override |
| Gaves the leaf effectif for given modality. | |
| double | total () const override |
| Idx | nbModa () const override |
| std::string | toString () override |
| virtual bool | contains (NodeId testedId) const |
| Returns true if abstractleaf has leaf in it. | |
| NodeId | id () |
Constructor & destructor. | |
| ConcreteLeaf (NodeId leafId, NodeDatabase< AttributeSelection, isScalar > *n1, const Sequence< ValueType > *valueDomain) | |
| Default constructor. | |
| ~ConcreteLeaf () override | |
| Default destructor. | |
| void * | operator new (size_t s) |
| Allocators and Deallocators redefinition. | |
| void | operator delete (void *p) |
| Default constructor. | |
Private Types | |
| using | ValueType = typename ValueSelect< isScalar, double, Idx >::type |
Private Member Functions | |
| double | _effectif_ (Idx moda, Int2Type< true >) const |
| double | _effectif_ (Idx moda, Int2Type< false >) const |
| Idx | _nbModa_ (Int2Type< true >) const |
| Idx | _nbModa_ (Int2Type< false >) const |
Private Attributes | |
| NodeDatabase< AttributeSelection, isScalar > * | _n1_ |
| const Sequence< ValueType > * | _valueDomain_ |
| NodeId | _leafId_ |
<agrum/FMDP/learning/datastructure/leaves/concreteLeaf.h>
A concrete leaf
Definition at line 74 of file concreteLeaf.h.
|
private |
Definition at line 75 of file concreteLeaf.h.
| gum::ConcreteLeaf< AttributeSelection, isScalar >::ConcreteLeaf | ( | NodeId | leafId, |
| NodeDatabase< AttributeSelection, isScalar > * | n1, | ||
| const Sequence< ValueType > * | valueDomain ) |
Default constructor.
Definition at line 49 of file concreteLeaf_tpl.h.
References gum::AbstractLeaf::AbstractLeaf(), ConcreteLeaf(), _n1_, and _valueDomain_.
Referenced by ConcreteLeaf(), ~ConcreteLeaf(), operator delete(), and operator new().
|
override |
Default destructor.
Definition at line 58 of file concreteLeaf_tpl.h.
References ConcreteLeaf().
|
private |
Definition at line 85 of file concreteLeaf_tpl.h.
References _n1_.
|
private |
Definition at line 79 of file concreteLeaf_tpl.h.
References _n1_, and _valueDomain_.
Referenced by effectif().
|
private |
Definition at line 106 of file concreteLeaf_tpl.h.
References _n1_.
|
private |
Definition at line 101 of file concreteLeaf_tpl.h.
References _valueDomain_.
Referenced by nbModa().
Returns true if abstractleaf has leaf in it.
Reimplemented in gum::ComposedLeaf.
Definition at line 65 of file abstractLeaf_inl.h.
References _leafId_.
Referenced by gum::ComposedLeaf::contains(), and gum::LeafAggregator::update().
|
overridevirtual |
Gaves the leaf effectif for given modality.
Implements gum::AbstractLeaf.
Definition at line 74 of file concreteLeaf_tpl.h.
References _effectif_().
|
inherited |
Definition at line 67 of file abstractLeaf_inl.h.
References _leafId_.
Referenced by gum::LeafAggregator::updateLeaf().
|
overridevirtual |
Implements gum::AbstractLeaf.
Definition at line 96 of file concreteLeaf_tpl.h.
References _nbModa_().
| void gum::ConcreteLeaf< AttributeSelection, isScalar >::operator delete | ( | void * | p | ) |
Default constructor.
Definition at line 69 of file concreteLeaf_tpl.h.
References ConcreteLeaf(), gum::SmallObjectAllocator::deallocate(), and gum::SmallObjectAllocator::instance().
| void * gum::ConcreteLeaf< AttributeSelection, isScalar >::operator new | ( | size_t | s | ) |
Allocators and Deallocators redefinition.
Definition at line 64 of file concreteLeaf_tpl.h.
References ConcreteLeaf(), gum::SmallObjectAllocator::allocate(), and gum::SmallObjectAllocator::instance().
|
overridevirtual |
Implements gum::AbstractLeaf.
Definition at line 111 of file concreteLeaf_tpl.h.
|
overridevirtual |
|
privateinherited |
Definition at line 116 of file abstractLeaf.h.
Referenced by AbstractLeaf(), contains(), and id().
|
private |
Definition at line 128 of file concreteLeaf.h.
Referenced by ConcreteLeaf(), _effectif_(), _effectif_(), _nbModa_(), and total().
|
private |
Definition at line 129 of file concreteLeaf.h.
Referenced by ConcreteLeaf(), _effectif_(), and _nbModa_().