![]() |
aGrUM
0.20.3
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 39 of file statesCounter.cpp.
References gum::Set< Key, Alloc >::emplace().
|
private |
Definition at line 81 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 65 of file statesCounter.cpp.
References gum::Set< Key, Alloc >::emplace().
|
inlinevirtual |
Implements gum::IVisitableGraphLearner.
Definition at line 114 of file statesCounter.h.
Implements gum::IVisitableGraphLearner.
Definition at line 97 of file statesCounter.h.
Implements gum::IVisitableGraphLearner.
Definition at line 112 of file statesCounter.h.
Implements gum::IVisitableGraphLearner.
Definition at line 107 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 48 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 128 of file statesCounter.h.
|
private |
Definition at line 130 of file statesCounter.h.