-/// Stores observed values of a subset of variables
-/** \author Charles Vaske
- */
-class Observation {
- private:
- /// Used to store the state of some variables
- std::map<Var, size_t> _obs;
-
- public:
- /// Default constructor
- Observation() : _obs() {}
-
- /// Get all observations
- const std::map<Var, size_t>& observations() const { return _obs; }
-
- /// Add an observation
- void addObservation( Var node, size_t setting );
-
- /// Clamp variables in the graphical model to their observed values
- void applyEvidence( InfAlg& alg ) const;
-};
-
-
-/// Stores multiple joint observations of sets of variables.
-/** The Evidence class stores multiple samples, where each sample is the joint
- * observation of the states of some variables.
+/// Stores a data set consisting of multiple samples, where each sample is the observed joint state of some variables.
+/** \note Each sample can describe the joint state of a different set of variables,
+ * in order to be able to deal with missing data.