![]() |
aGrUM
0.20.3
a C++ library for (probabilistic) graphical models
|
<agrum/FMDP/planning/FunctionGraph/variableselector.h> More...
#include <variableselector.h>
Public Member Functions | |
Constructor & destructor. | |
VariableSelector (Set< const DiscreteVariable * > &startingSet) | |
Default constructor. More... | |
~VariableSelector () | |
Default destructor. More... | |
Set< const DiscreteVariable *> | _remainingVars_ |
The set of remaining vars to select among. More... | |
SetIteratorSafe< const DiscreteVariable *> | _rvi_ |
The set of remaining vars to select among. More... | |
MultiPriorityQueue< double, double, std::greater< double > > | _remainingScores_ |
Heap keeping best score on top for immediate access. More... | |
HashTable< double, Set< const DiscreteVariable *> *> | _remainingVarsByScore_ |
HashTable associating to each score the set of variable having that score. More... | |
HashTable< const DiscreteVariable *, double > | _remainingVarsScore_ |
HashTable associating to each variable its score. More... | |
HashTable< const DiscreteVariable *, double > | _remainingVarsOtherScore_ |
HashTable associating to each variable its 2nd score. More... | |
void | updateScore (const DiscreteVariable *var, double score, double secondaryscore) |
The set of remaining vars to select among. More... | |
void | downdateScore (const DiscreteVariable *var, double score, double secondaryscore) |
The set of remaining vars to select among. More... | |
const DiscreteVariable * | select () |
Select the most relevant variable. More... | |
bool | isEmpty () |
The set of remaining vars to select among. More... | |
void | begin () |
The set of remaining vars to select among. More... | |
bool | hasNext () |
The set of remaining vars to select among. More... | |
void | next () |
The set of remaining vars to select among. More... | |
const DiscreteVariable * | current () |
The set of remaining vars to select among. More... | |
void | _addVar_ (const DiscreteVariable *var) |
The set of remaining vars to select among. More... | |
void | _removeVar_ (const DiscreteVariable *var) |
The set of remaining vars to select among. More... | |
<agrum/FMDP/planning/FunctionGraph/variableselector.h>
Definition at line 51 of file variableselector.h.
gum::VariableSelector::VariableSelector | ( | Set< const DiscreteVariable * > & | startingSet | ) |
Default constructor.
Definition at line 41 of file variableselector.cpp.
References gum::Set< Key, Alloc >::emplace().
gum::VariableSelector::~VariableSelector | ( | ) |
Default destructor.
Definition at line 57 of file variableselector.cpp.
References gum::Set< Key, Alloc >::emplace().
|
private |
The set of remaining vars to select among.
Definition at line 113 of file variableselector.cpp.
References gum::Set< Key, Alloc >::emplace().
|
private |
The set of remaining vars to select among.
Definition at line 127 of file variableselector.cpp.
References gum::Set< Key, Alloc >::emplace().
|
inline |
The set of remaining vars to select among.
Definition at line 89 of file variableselector.h.
|
inline |
The set of remaining vars to select among.
Definition at line 92 of file variableselector.h.
void gum::VariableSelector::downdateScore | ( | const DiscreteVariable * | var, |
double | score, | ||
double | secondaryscore | ||
) |
The set of remaining vars to select among.
Definition at line 79 of file variableselector.cpp.
References gum::Set< Key, Alloc >::emplace().
|
inline |
The set of remaining vars to select among.
Definition at line 90 of file variableselector.h.
|
inline |
The set of remaining vars to select among.
Definition at line 87 of file variableselector.h.
|
inline |
The set of remaining vars to select among.
Definition at line 91 of file variableselector.h.
const DiscreteVariable * gum::VariableSelector::select | ( | ) |
Select the most relevant variable.
Definition at line 92 of file variableselector.cpp.
References gum::Set< Key, Alloc >::emplace().
void gum::VariableSelector::updateScore | ( | const DiscreteVariable * | var, |
double | score, | ||
double | secondaryscore | ||
) |
The set of remaining vars to select among.
Definition at line 66 of file variableselector.cpp.
References gum::Set< Key, Alloc >::emplace().
|
private |
Heap keeping best score on top for immediate access.
Definition at line 103 of file variableselector.h.
|
private |
The set of remaining vars to select among.
Definition at line 99 of file variableselector.h.
|
private |
HashTable associating to each score the set of variable having that score.
Definition at line 107 of file variableselector.h.
|
private |
HashTable associating to each variable its 2nd score.
Definition at line 113 of file variableselector.h.
|
private |
HashTable associating to each variable its score.
Definition at line 110 of file variableselector.h.
|
private |
The set of remaining vars to select among.
Definition at line 100 of file variableselector.h.