aGrUM  0.17.2
a C++ library for (probabilistic) graphical models
observation.cpp
Go to the documentation of this file.
1 
24 
25 namespace gum {
26 
27  std::string Observation::toString() const {
28  std::stringstream status;
29  for (auto varIter = __varInst.beginSafe(); varIter != __varInst.endSafe();
30  ++varIter)
31  if (__rInst.exists(varIter.key()))
32  status << "| " << varIter.key()->name() << " : " << varIter.val() << " -> "
33  << __rInst[varIter.key()] << " |";
34  status << std::endl;
35  return status.str();
36  }
37 } // end of namespace gum
Copyright 2005-2020 Pierre-Henri WUILLEMIN () et Christophe GONZALES () info_at_agrum_dot_org.
Definition: agrum.h:25
Copyright 2005-2020 Pierre-Henri WUILLEMIN () et Christophe GONZALES () info_at_agrum_dot_org.
std::string toString() const
Definition: observation.cpp:27
HashTable< const DiscreteVariable *, Idx > __rInst
Definition: observation.h:158
HashTable< const DiscreteVariable *, Idx > __varInst
Table giving for every variables its instantiation.
Definition: observation.h:157