![]() |
aGrUM
0.20.2
a C++ library for (probabilistic) graphical models
|
<agrum/FMDP/simulation/statesCounter.h> More...
#include <statesCounter.h>
Public Member Functions | |
Constructor & destructor. | |
StatesCounter () | |
Default constructor. More... | |
~StatesCounter () | |
Default destructor. More... | |
Miscelleanous methods | |
void | incState (const Instantiation &) |
void | reset (const Instantiation &) |
const MultiDimFunctionGraph< int > * | counter () |
Visit Methods | |
NodeId | root () const |
bool | isTerminal (NodeId ni) const |
const DiscreteVariable * | nodeVar (NodeId ni) const |
NodeId | nodeSon (NodeId ni, Idx modality) const |
Idx | nodeNbObservation (NodeId ni) const |
void | insertSetOfVars (MultiDimFunctionGraph< double > *ret) const |
<agrum/FMDP/simulation/statesCounter.h>
Provides the necessary to check whether or not states have been already visited.
Definition at line 51 of file statesCounter.h.
gum::StatesCounter::StatesCounter | ( | ) |
Default constructor.
Definition at line 31 of file statesCounter.cpp.
References gum::Set< Key, Alloc >::emplace().
gum::StatesCounter::~StatesCounter | ( | ) |
Default destructor.
Definition at line 40 of file statesCounter.cpp.
References gum::Set< Key, Alloc >::emplace().
const MultiDimFunctionGraph< int >* gum::StatesCounter::counter | ( | ) |
void gum::StatesCounter::incState | ( | const Instantiation & | state | ) |
Definition at line 66 of file statesCounter.cpp.
References gum::Set< Key, Alloc >::emplace().
|
private |
Definition at line 82 of file statesCounter.cpp.
References gum::Set< Key, Alloc >::emplace().
|
inlinevirtual |
Implements gum::IVisitableGraphLearner.
Definition at line 118 of file statesCounter.h.
Implements gum::IVisitableGraphLearner.
Definition at line 97 of file statesCounter.h.
Implements gum::IVisitableGraphLearner.
Definition at line 116 of file statesCounter.h.
Implements gum::IVisitableGraphLearner.
Definition at line 109 of file statesCounter.h.
|
inlinevirtual |
Implements gum::IVisitableGraphLearner.
Definition at line 102 of file statesCounter.h.
void gum::StatesCounter::reset | ( | const Instantiation & | initialState | ) |
Definition at line 49 of file statesCounter.cpp.
References gum::Set< Key, Alloc >::emplace().
|
inlinevirtual |
Implements gum::IVisitableGraphLearner.
Definition at line 92 of file statesCounter.h.
|
private |
Definition at line 132 of file statesCounter.h.
|
private |
Definition at line 134 of file statesCounter.h.