![]() |
aGrUM
0.14.2
|
<agrum/FMDP/learning/FunctionGraph/leafAggregator.h> More...
#include <leafAggregator.h>
Public Member Functions | |
void | update () |
bool | needsUpdate () |
HashTable< NodeId, AbstractLeaf *> | leavesMap () |
std::string | toString () |
Constructor & destructor. | |
LeafAggregator (NodeGraphPart *idSource, double similarityThreshold) | |
Default constructor. More... | |
~LeafAggregator () | |
Default destructor. More... | |
Leaf Handling methods | |
void | addLeaf (AbstractLeaf *) |
bool | updateLeaf (AbstractLeaf *) |
void | removeLeaf (AbstractLeaf *) |
void | begin () |
bool | hasNext () |
double | next () |
<agrum/FMDP/learning/FunctionGraph/leafAggregator.h>
Gather together leaves with similar distributions
Definition at line 57 of file leafAggregator.h.
gum::LeafAggregator::LeafAggregator | ( | NodeGraphPart * | idSource, |
double | similarityThreshold | ||
) |
Default constructor.
Definition at line 40 of file leafAggregator.cpp.
References __initialContext, and __needsUpdate.
gum::LeafAggregator::~LeafAggregator | ( | ) |
Default destructor.
Definition at line 52 of file leafAggregator.cpp.
References __initialContext, __leaf2Pair, __removeContext(), and gum::LeafPair::otherLeaf().
|
private |
Definition at line 359 of file leafAggregator.cpp.
References __initialContext, __removeContext(), and gum::FusionContext< isInitial >::addPair().
Referenced by addLeaf(), and needsUpdate().
|
private |
Definition at line 344 of file leafAggregator.cpp.
References __fusionSeq, __leavesCpt, __needsUpdate, and gum::NodeGraphPart::eraseNode().
Referenced by __addInitialPair(), __removeInitialPair(), __updateInitialPair(), addLeaf(), needsUpdate(), removeLeaf(), updateLeaf(), and ~LeafAggregator().
|
private |
Definition at line 376 of file leafAggregator.cpp.
References __initialContext, __removeContext(), and gum::FusionContext< isInitial >::removePair().
Referenced by needsUpdate(), and removeLeaf().
|
private |
Definition at line 368 of file leafAggregator.cpp.
References __initialContext, __removeContext(), and gum::FusionContext< isInitial >::updatePair().
Referenced by needsUpdate(), and updateLeaf().
void gum::LeafAggregator::addLeaf | ( | AbstractLeaf * | l | ) |
Definition at line 83 of file leafAggregator.cpp.
References __addInitialPair(), __fusionSeq, __leaf2Pair, __needsUpdate, __removeContext(), gum::Set< Key, Alloc >::beginSafe(), gum::Set< Key, Alloc >::endSafe(), gum::Set< Key, Alloc >::insert(), and gum::LeafPair::updateLikelyhood().
Referenced by gum::IMDDI< AttributeSelection, isScalar >::__addLeaf().
void gum::LeafAggregator::begin | ( | ) |
bool gum::LeafAggregator::hasNext | ( | ) |
HashTable< NodeId, AbstractLeaf *> gum::LeafAggregator::leavesMap | ( | ) |
Definition at line 285 of file leafAggregator.cpp.
References __fusionSeq, __leaf2Pair, gum::HashTable< Key, Val, Alloc >::beginSafe(), gum::HashTable< Key, Val, Alloc >::endSafe(), gum::HashTable< Key, Val, Alloc >::exists(), and gum::HashTable< Key, Val, Alloc >::insert().
Referenced by gum::IMDDI< AttributeSelection, isScalar >::__rebuildFunctionGraph(), and needsUpdate().
|
inline |
Definition at line 122 of file leafAggregator.h.
References __addInitialPair(), __needsUpdate, __removeContext(), __removeInitialPair(), __updateInitialPair(), leavesMap(), and toString().
Referenced by gum::IMDDI< AttributeSelection, isScalar >::updateGraph().
double gum::LeafAggregator::next | ( | ) |
void gum::LeafAggregator::removeLeaf | ( | AbstractLeaf * | l | ) |
Definition at line 192 of file leafAggregator.cpp.
References __fusionSeq, __leaf2Pair, __needsUpdate, __removeContext(), __removeInitialPair(), gum::Set< Key, Alloc >::beginSafe(), and gum::Set< Key, Alloc >::endSafe().
Referenced by gum::IMDDI< AttributeSelection, isScalar >::__removeLeaf().
std::string gum::LeafAggregator::toString | ( | ) |
Definition at line 323 of file leafAggregator.cpp.
References __fusionSeq, __initialContext, and gum::FusionContext< isInitial >::toString().
Referenced by needsUpdate().
void gum::LeafAggregator::update | ( | ) |
Definition at line 249 of file leafAggregator.cpp.
References __fusionSeq, __initialContext, __leavesCpt, __needsUpdate, __similarityThreshold, gum::NodeGraphPart::addNode(), gum::FusionContext< isInitial >::addPair(), gum::FusionContext< isInitial >::associateLeaf(), gum::FusionContext< isInitial >::beginPairs(), gum::AbstractLeaf::contains(), gum::FusionContext< isInitial >::containsAssociatedLeaf(), gum::LeafPair::convert2Leaf(), gum::FusionContext< isInitial >::endPairs(), gum::LeafPair::likelyhood(), and gum::FusionContext< isInitial >::top().
Referenced by gum::IMDDI< AttributeSelection, isScalar >::__rebuildFunctionGraph(), and gum::IMDDI< AttributeSelection, isScalar >::updateGraph().
bool gum::LeafAggregator::updateLeaf | ( | AbstractLeaf * | l | ) |
Definition at line 142 of file leafAggregator.cpp.
References __fusionSeq, __leaf2Pair, __needsUpdate, __removeContext(), __updateInitialPair(), gum::Set< Key, Alloc >::beginSafe(), gum::Set< Key, Alloc >::clear(), gum::Set< Key, Alloc >::endSafe(), and gum::AbstractLeaf::id().
Referenced by gum::IMDDI< AttributeSelection, isScalar >::_updateNodeWithObservation().
|
private |
Definition at line 134 of file leafAggregator.h.
Referenced by __removeContext(), addLeaf(), leavesMap(), removeLeaf(), toString(), update(), and updateLeaf().
|
private |
Definition at line 136 of file leafAggregator.h.
Referenced by __addInitialPair(), __removeInitialPair(), __updateInitialPair(), LeafAggregator(), toString(), update(), and ~LeafAggregator().
|
private |
Definition at line 138 of file leafAggregator.h.
Referenced by addLeaf(), leavesMap(), removeLeaf(), updateLeaf(), and ~LeafAggregator().
|
private |
Definition at line 140 of file leafAggregator.h.
Referenced by __removeContext(), and update().
|
private |
Definition at line 143 of file leafAggregator.h.
Referenced by __removeContext(), addLeaf(), LeafAggregator(), needsUpdate(), removeLeaf(), update(), and updateLeaf().
|
private |
Definition at line 142 of file leafAggregator.h.
Referenced by update().