31 #ifndef GUM_STATES_COUNTER_H 32 #define GUM_STATES_COUNTER_H 138 #endif // GUM_STATES_COUNTER_H
Safe iterators for Sequence.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
bool isTerminalNode(const NodeId &node) const
Indicates if given node is terminal or not.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
const InternalNode * node(NodeId n) const
Returns internalNode structure associated to that nodeId.
<agrum/FMDP/simulation/statesCounter.h>
const DiscreteVariable * nodeVar() const
Returns the node variable.
NodeId son(Idx modality) const
Returns the son at a given index.
<agrum/FMDP/SDyna/IVisitableGraphLearner.h>
void insertSetOfVars(MultiDimFunctionGraph< double > *ret) const
Base class for discrete random variable.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
const MultiDimFunctionGraph< int > * counter()
Idx nodeNbObservation(NodeId ni) const
Representation of a setA Set is a structure that contains arbitrary elements.
virtual void add(const DiscreteVariable &v)
Adds a new var to the variables of the multidimensional matrix.
const GUM_SCALAR & nodeValue(NodeId n) const
Returns value associated to given node.
MultiDimFunctionGraph< Size > * __counter
const DiscreteVariable * nodeVar(NodeId ni) const
const NodeId & root() const
Returns the id of the root node from the diagram.
Class implementingting a function graph.
~StatesCounter()
Default destructor.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
void reset(const Instantiation &)
NodeId nodeSon(NodeId ni, Idx modality) const
void __incState(const Instantiation &, NodeId, Idx, Size)
virtual const Sequence< const DiscreteVariable *> & variablesSequence() const override
Returns a const ref to the sequence of DiscreteVariable*.
Class for assigning/browsing values to tuples of discrete variables.
Set< Instantiation *> __visitedStates
void incState(const Instantiation &)
Size Idx
Type for indexes.
std::size_t Size
In aGrUM, hashed values are unsigned long int.
StatesCounter()
Default constructor.
bool isTerminal(NodeId ni) const
Size NodeId
Type for node ids.