![]() |
aGrUM 3.1.1
a C++ library for (probabilistic) graphical models
|
<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. | |
| AbstractLeaf * | convert2Leaf (NodeId leafId) const |
| Returns a leaf matching data and having given id as id. | |
| AbstractLeaf * | otherLeaf (AbstractLeaf *l) const |
| std::string | toString () |
Constructor & destructor. | |
| LeafPair (AbstractLeaf *l1, AbstractLeaf *l2) | |
| Default constructor. | |
| ~LeafPair () | |
| Default destructor. | |
| void * | operator new (size_t s) |
| Allocators and Deallocators redefinition. | |
| void | operator delete (void *p) |
| Default constructor. | |
Likelyhood Methods | |
| void | updateLikelyhood () |
| Updates GStatistic. | |
| double | likelyhood () |
| Updates GStatistic. | |
Private Attributes | |
| AbstractLeaf * | _l1_ |
| AbstractLeaf * | _l2_ |
| double | _likelyhood1_ |
| double | _likelyhood2_ |
<agrum/FMDP/learning/datastructure/leaves/leafPair.h>
Handles a pair of leaves
Definition at line 69 of file leafPair.h.
| INLINE gum::LeafPair::LeafPair | ( | AbstractLeaf * | l1, |
| AbstractLeaf * | l2 ) |
Default constructor.
Definition at line 48 of file leafPair_inl.h.
References LeafPair(), _l1_, and _l2_.
Referenced by LeafPair(), ~LeafPair(), and operator delete().
| INLINE gum::LeafPair::~LeafPair | ( | ) |
Default destructor.
Definition at line 52 of file leafPair_inl.h.
References LeafPair().
| INLINE AbstractLeaf * gum::LeafPair::convert2Leaf | ( | NodeId | leafId | ) | const |
Returns a leaf matching data and having given id as id.
Definition at line 73 of file leafPair_inl.h.
Referenced by gum::LeafAggregator::update().
| INLINE AbstractLeaf * gum::LeafPair::firstLeaf | ( | ) |
| double gum::LeafPair::likelyhood | ( | ) |
Updates GStatistic.
Definition at line 99 of file leafPair.cpp.
References _l1_, _likelyhood1_, _likelyhood2_, and gum::ChiSquare::probaChi2().
Referenced by gum::LeafAggregator::update(), and gum::FusionContext< isInitial >::updatePair().
| INLINE void gum::LeafPair::operator delete | ( | void * | p | ) |
Default constructor.
Definition at line 61 of file leafPair_inl.h.
References LeafPair(), gum::SmallObjectAllocator::deallocate(), and gum::SmallObjectAllocator::instance().
| INLINE void * gum::LeafPair::operator new | ( | size_t | s | ) |
Allocators and Deallocators redefinition.
Definition at line 57 of file leafPair_inl.h.
References gum::SmallObjectAllocator::allocate(), and gum::SmallObjectAllocator::instance().
| INLINE AbstractLeaf * gum::LeafPair::otherLeaf | ( | AbstractLeaf * | l | ) | const |
Definition at line 77 of file leafPair_inl.h.
Referenced by gum::LeafAggregator::~LeafAggregator().
| INLINE AbstractLeaf * gum::LeafPair::secondLeaf | ( | ) |
| std::string gum::LeafPair::toString | ( | ) |
Definition at line 106 of file leafPair.cpp.
| void gum::LeafPair::updateLikelyhood | ( | ) |
Updates GStatistic.
Definition at line 68 of file leafPair.cpp.
References _l1_, _l2_, _likelyhood1_, and _likelyhood2_.
Referenced by gum::LeafAggregator::addLeaf().
|
private |
Definition at line 134 of file leafPair.h.
Referenced by LeafPair(), contains(), convert2Leaf(), firstLeaf(), likelyhood(), otherLeaf(), toString(), and updateLikelyhood().
|
private |
Definition at line 135 of file leafPair.h.
Referenced by LeafPair(), contains(), convert2Leaf(), otherLeaf(), secondLeaf(), toString(), and updateLikelyhood().
|
private |
Definition at line 137 of file leafPair.h.
Referenced by likelyhood(), and updateLikelyhood().
|
private |
Definition at line 138 of file leafPair.h.
Referenced by likelyhood(), and updateLikelyhood().