52#ifndef GUM_OBSERVATION_H
53#define GUM_OBSERVATION_H
93 void*
operator new(
size_t s);
95 void operator delete(
void* p);
Base class for discrete random variable.
Safe Const Iterators for hashtables.
The class for generic Hash Tables.
HashTableConstIteratorSafe< const DiscreteVariable *, Idx > cendVariablesSafe() const
Returns an const safe iterator on the end of the list of variables in this observation.
~Observation()
Default destructor.
double _reward_
The reward associated to this transition.
Idx modality(const DiscreteVariable *var) const
Returns the modality assumed by the given variable in this observation.
double reward() const
Returns the modality assumed by the given variable in this observation.
void setReward(double reward)
Returns the modality assumed by the given variable in this observation.
Idx rModality(const DiscreteVariable *var) const
Returns the modality assumed by the given variable in this observation.
std::string toString() const
void setRModality(const DiscreteVariable *var, Idx modality)
Returns the modality assumed by the given variable in this observation.
HashTable< const DiscreteVariable *, Idx > _varInst_
Table giving for every variables its instantiation.
HashTableConstIteratorSafe< const DiscreteVariable *, Idx > cbeginVariablesSafe() const
Returns an const safe iterator on the beginning of the list of variables in this observation.
Observation()
Default constructor.
void setModality(const DiscreteVariable *var, Idx modality)
Sets the modality assumed by the given variable in this observation.
HashTable< const DiscreteVariable *, Idx > _rInst_
Base class for discrete random variable.
Size Idx
Type for indexes.
gum is the global namespace for all aGrUM entities
Headers of gum::SmallObjectAllocator.