![]() |
aGrUM
0.16.0
|
<agrum/FMDP/learning/datastructure/leaves/leafPair.h> More...
#include <leafPair.h>
Public Member Functions | |
AbstractLeaf * | firstLeaf () |
AbstractLeaf * | secondLeaf () |
bool | contains (NodeId testedId) |
Returns true if pair has leaf in it. More... | |
AbstractLeaf * | convert2Leaf (NodeId leafId) const |
Returns a leaf matching data and having given id as id. More... | |
AbstractLeaf * | otherLeaf (AbstractLeaf *l) const |
std::string | toString () |
Constructor & destructor. | |
LeafPair (AbstractLeaf *l1, AbstractLeaf *l2) | |
Default constructor. More... | |
~LeafPair () | |
Default destructor. More... | |
void * | operator new (size_t s) |
Allocators and Deallocators redefinition. More... | |
void | operator delete (void *p) |
Default constructor. More... | |
Likelyhood Methods | |
void | updateLikelyhood () |
Updates GStatistic. More... | |
double | likelyhood () |
Updates GStatistic. More... | |
<agrum/FMDP/learning/datastructure/leaves/leafPair.h>
Handles a pair of leaves
Definition at line 51 of file leafPair.h.
|
inline |
Default constructor.
Definition at line 61 of file leafPair.h.
|
inline |
Default destructor.
Definition at line 68 of file leafPair.h.
Returns true if pair has leaf in it.
Definition at line 108 of file leafPair.h.
References __l1, __l2, and gum::AbstractLeaf::contains().
|
inline |
Returns a leaf matching data and having given id as id.
Definition at line 115 of file leafPair.h.
Referenced by gum::LeafAggregator::update().
|
inline |
double gum::LeafPair::likelyhood | ( | ) |
Updates GStatistic.
Definition at line 77 of file leafPair.cpp.
References __l1, __likelyhood1, __likelyhood2, gum::AbstractLeaf::nbModa(), and gum::ChiSquare::probaChi2().
Referenced by gum::FusionContext< true >::__associateLeaf(), gum::FusionContext< true >::addPair(), operator delete(), toString(), gum::LeafAggregator::update(), and gum::FusionContext< true >::updatePair().
|
inline |
Default constructor.
Definition at line 76 of file leafPair.h.
References gum::SmallObjectAllocator::deallocate(), gum::SmallObjectAllocator::instance(), likelyhood(), and updateLikelyhood().
|
inline |
Allocators and Deallocators redefinition.
Definition at line 73 of file leafPair.h.
References gum::SmallObjectAllocator::allocate(), and gum::SmallObjectAllocator::instance().
|
inline |
Definition at line 119 of file leafPair.h.
References __l1, __l2, and toString().
Referenced by gum::LeafAggregator::~LeafAggregator().
|
inline |
std::string gum::LeafPair::toString | ( | ) |
Definition at line 85 of file leafPair.cpp.
References __l1, __l2, likelyhood(), and gum::AbstractLeaf::toString().
Referenced by otherLeaf().
void gum::LeafPair::updateLikelyhood | ( | ) |
Updates GStatistic.
Definition at line 42 of file leafPair.cpp.
References __l1, __l2, __likelyhood1, __likelyhood2, gum::AbstractLeaf::effectif(), gum::AbstractLeaf::nbModa(), and gum::AbstractLeaf::total().
Referenced by gum::FusionContext< true >::__updateAllAssociatedLeaves(), gum::FusionContext< true >::__updateAssociatedLeaf(), gum::LeafAggregator::addLeaf(), and operator delete().
|
private |
Definition at line 126 of file leafPair.h.
Referenced by contains(), convert2Leaf(), firstLeaf(), likelyhood(), otherLeaf(), toString(), and updateLikelyhood().
|
private |
Definition at line 127 of file leafPair.h.
Referenced by contains(), convert2Leaf(), otherLeaf(), secondLeaf(), toString(), and updateLikelyhood().
|
private |
Definition at line 129 of file leafPair.h.
Referenced by likelyhood(), and updateLikelyhood().
|
private |
Definition at line 130 of file leafPair.h.
Referenced by likelyhood(), and updateLikelyhood().