![]() |
aGrUM
0.16.0
|
<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 52 of file variableselector.h.
gum::VariableSelector::VariableSelector | ( | Set< const DiscreteVariable * > & | startingSet | ) |
Default constructor.
Definition at line 42 of file variableselector.cpp.
References __remainingScores, __remainingVars, __remainingVarsByScore, __remainingVarsOtherScore, __remainingVarsScore, and gum::MultiPriorityQueue< Val, Priority, Cmp, Alloc >::insert().
gum::VariableSelector::~VariableSelector | ( | ) |
Default destructor.
Definition at line 60 of file variableselector.cpp.
|
private |
The set of remaining vars to select among.
Definition at line 116 of file variableselector.cpp.
References __remainingScores, __remainingVarsByScore, __remainingVarsScore, and gum::MultiPriorityQueue< Val, Priority, Cmp, Alloc >::insert().
Referenced by current(), downdateScore(), and updateScore().
|
private |
The set of remaining vars to select among.
Definition at line 131 of file variableselector.cpp.
References __remainingScores, __remainingVarsByScore, __remainingVarsScore, gum::Set< Key, Alloc >::empty(), and gum::MultiPriorityQueue< Val, Priority, Cmp, Alloc >::erase().
Referenced by current(), downdateScore(), select(), and updateScore().
|
inline |
The set of remaining vars to select among.
Definition at line 94 of file variableselector.h.
References __remainingVars, and __rvi.
Referenced by gum::IMDDI< AttributeSelection, isScalar >::__updateNodeSet(), and gum::IMDDI< AttributeSelection, isScalar >::updateGraph().
|
inline |
The set of remaining vars to select among.
Definition at line 97 of file variableselector.h.
References __addVar(), __removeVar(), and __rvi.
Referenced by gum::IMDDI< AttributeSelection, isScalar >::__updateNodeSet(), and gum::IMDDI< AttributeSelection, isScalar >::updateGraph().
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 __addVar(), __remainingVarsOtherScore, __remainingVarsScore, and __removeVar().
Referenced by gum::IMDDI< AttributeSelection, isScalar >::__downdateScore().
|
inline |
The set of remaining vars to select among.
Definition at line 95 of file variableselector.h.
References __remainingVars, and __rvi.
Referenced by gum::IMDDI< AttributeSelection, isScalar >::__updateNodeSet(), and gum::IMDDI< AttributeSelection, isScalar >::updateGraph().
|
inline |
The set of remaining vars to select among.
Definition at line 92 of file variableselector.h.
References __remainingVars.
Referenced by gum::IMDDI< AttributeSelection, isScalar >::updateGraph().
|
inline |
The set of remaining vars to select among.
Definition at line 96 of file variableselector.h.
References __rvi.
Referenced by gum::IMDDI< AttributeSelection, isScalar >::__updateNodeSet(), and gum::IMDDI< AttributeSelection, isScalar >::updateGraph().
const DiscreteVariable * gum::VariableSelector::select | ( | ) |
Select the most relevant variable.
Definition at line 92 of file variableselector.cpp.
References __remainingScores, __remainingVars, __remainingVarsByScore, __remainingVarsOtherScore, __removeVar(), gum::Set< Key, Alloc >::beginSafe(), gum::DiscreteVariable::domainSize(), gum::Set< Key, Alloc >::endSafe(), and gum::MultiPriorityQueue< Val, Priority, Cmp, Alloc >::top().
Referenced by gum::IMDDI< AttributeSelection, isScalar >::updateGraph().
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 __addVar(), __remainingVarsOtherScore, __remainingVarsScore, and __removeVar().
Referenced by gum::IMDDI< AttributeSelection, isScalar >::__updateScore().
|
private |
Heap keeping best score on top for immediate access.
Definition at line 108 of file variableselector.h.
Referenced by __addVar(), __removeVar(), select(), and VariableSelector().
|
private |
The set of remaining vars to select among.
Definition at line 104 of file variableselector.h.
Referenced by begin(), hasNext(), isEmpty(), select(), and VariableSelector().
|
private |
HashTable associating to each score the set of variable having that score.
Definition at line 112 of file variableselector.h.
Referenced by __addVar(), __removeVar(), select(), and VariableSelector().
|
private |
HashTable associating to each variable its 2nd score.
Definition at line 118 of file variableselector.h.
Referenced by downdateScore(), select(), updateScore(), and VariableSelector().
|
private |
HashTable associating to each variable its score.
Definition at line 115 of file variableselector.h.
Referenced by __addVar(), __removeVar(), downdateScore(), updateScore(), and VariableSelector().
|
private |