![]() |
aGrUM
0.20.2
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 60 of file variableselector.cpp.
References gum::Set< Key, Alloc >::emplace().
|
private |
The set of remaining vars to select among.
Definition at line 116 of file variableselector.cpp.
References gum::Set< Key, Alloc >::emplace().
|
inline |
The set of remaining vars to select among.
Definition at line 93 of file variableselector.h.
|
inline |
The set of remaining vars to select among.
Definition at line 96 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 94 of file variableselector.h.
|
inline |
The set of remaining vars to select among.
Definition at line 91 of file variableselector.h.
|
inline |
The set of remaining vars to select among.
Definition at line 95 of file variableselector.h.
|
private |
The set of remaining vars to select among.
Definition at line 131 of file variableselector.cpp.
References gum::Set< Key, Alloc >::emplace().
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 107 of file variableselector.h.
|
private |
The set of remaining vars to select among.
Definition at line 103 of file variableselector.h.
|
private |
HashTable associating to each score the set of variable having that score.
Definition at line 111 of file variableselector.h.
|
private |
HashTable associating to each variable its 2nd score.
Definition at line 117 of file variableselector.h.
|
private |
HashTable associating to each variable its score.
Definition at line 114 of file variableselector.h.
|
private |
The set of remaining vars to select among.
Definition at line 104 of file variableselector.h.