![]() |
aGrUM
0.20.3
a C++ library for (probabilistic) graphical models
|
#include <agrum/FMDP/learning/observation.h>
Public Member Functions | |
std::string | toString () const |
Constructor & destructor. | |
Observation () | |
Default constructor. More... | |
~Observation () | |
Default destructor. More... | |
void * | operator new (size_t s) |
Allocators and Deallocators redefinition. More... | |
void | operator delete (void *p) |
Default constructor. More... | |
Observation Handlers | |
INLINE Idx | modality (const DiscreteVariable *var) const |
Returns the modality assumed by the given variable in this observation. More... | |
INLINE Idx | rModality (const DiscreteVariable *var) const |
Returns the modality assumed by the given variable in this observation. More... | |
INLINE void | setModality (const DiscreteVariable *var, Idx modality) |
Sets the modality assumed by the given variable in this observation. More... | |
INLINE void | setRModality (const DiscreteVariable *var, Idx modality) |
Returns the modality assumed by the given variable in this observation. More... | |
double | reward () const |
Returns the modality assumed by the given variable in this observation. More... | |
void | setReward (double reward) |
Returns the modality assumed by the given variable in this observation. More... | |
Iterators on Variables | |
HashTableConstIteratorSafe< const DiscreteVariable *, Idx > | cbeginVariablesSafe () const |
Returns an const safe iterator on the beginning of the list of variables in this observation. More... | |
HashTableConstIteratorSafe< const DiscreteVariable *, Idx > | cendVariablesSafe () const |
Returns an const safe iterator on the end of the list of variables in this observation. More... | |
Definition at line 53 of file observation.h.
|
inline |
|
inline |
|
inline |
Returns an const safe iterator on the beginning of the list of variables in this observation.
Definition at line 139 of file observation.h.
|
inline |
Returns an const safe iterator on the end of the list of variables in this observation.
Definition at line 147 of file observation.h.
|
inline |
Returns the modality assumed by the given variable in this observation.
NotFound | if variable is not in this observation |
Definition at line 98 of file observation.h.
References toString().
|
inline |
Default constructor.
Definition at line 80 of file observation.h.
|
inline |
Allocators and Deallocators redefinition.
Definition at line 79 of file observation.h.
|
inline |
Returns the modality assumed by the given variable in this observation.
NotFound | if variable is not in this observation |
Definition at line 119 of file observation.h.
References toString().
|
inline |
Returns the modality assumed by the given variable in this observation.
NotFound | if variable is not in this observation |
Definition at line 99 of file observation.h.
References toString().
|
inline |
Sets the modality assumed by the given variable in this observation.
DuplicateElement | if a value has already be assigned to this variable |
Definition at line 109 of file observation.h.
References toString().
|
inline |
Returns the modality assumed by the given variable in this observation.
NotFound | if variable is not in this observation |
Definition at line 124 of file observation.h.
References toString().
|
inline |
Returns the modality assumed by the given variable in this observation.
NotFound | if variable is not in this observation |
Definition at line 112 of file observation.h.
References toString().
std::string gum::Observation::toString | ( | ) | const |
Definition at line 26 of file observation.cpp.
References gum::Set< Key, Alloc >::emplace().
Referenced by modality(), reward(), rModality(), setModality(), setReward(), and setRModality().
|
private |
The reward associated to this transition.
Definition at line 159 of file observation.h.
|
private |
Definition at line 156 of file observation.h.
|
private |
Table giving for every variables its instantiation.
Definition at line 155 of file observation.h.