![]() |
aGrUM
0.20.3
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. 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 50 of file leafPair.h.
|
inline |
Default constructor.
Definition at line 60 of file leafPair.h.
|
inline |
Default destructor.
Definition at line 65 of file leafPair.h.
Returns true if pair has leaf in it.
Definition at line 106 of file leafPair.h.
|
inline |
|
inline |
Definition at line 100 of file leafPair.h.
double gum::LeafPair::likelyhood | ( | ) |
Updates GStatistic.
Definition at line 73 of file leafPair.cpp.
References gum::Set< Key, Alloc >::emplace().
|
inline |
Default constructor.
Definition at line 74 of file leafPair.h.
|
inline |
Allocators and Deallocators redefinition.
Definition at line 73 of file leafPair.h.
|
inline |
Definition at line 113 of file leafPair.h.
|
inline |
Definition at line 101 of file leafPair.h.
std::string gum::LeafPair::toString | ( | ) |
Definition at line 80 of file leafPair.cpp.
References gum::Set< Key, Alloc >::emplace().
void gum::LeafPair::updateLikelyhood | ( | ) |
Updates GStatistic.
Definition at line 42 of file leafPair.cpp.
References gum::Set< Key, Alloc >::emplace().
|
private |
Definition at line 118 of file leafPair.h.
|
private |
Definition at line 119 of file leafPair.h.
|
private |
Definition at line 121 of file leafPair.h.
|
private |
Definition at line 122 of file leafPair.h.