9 #ifndef OBSERVATION_HPP_INCLUDED
10 #define OBSERVATION_HPP_INCLUDED
33 friend std::ostream & operator<<(std::ostream& os,
const ObsMeasure &m);
69 friend std::ostream & operator<<(std::ostream& os,
const ObsPresenceStats &m);
82 HMM::ObsId
getClosestObs(
const std::vector<ObsPresenceStats> &m)
const __attribute__((pure));
98 std::vector<double> m_stats;
HMM::ObsId getClosestObs(const std::vector< ObsMeasure > &m)
Compute the closest observation.
static const int TypeID
Mandatory id of the class (must be unique amongst Observation classes)
Definition: Observation.hpp:84
Definition: Observation.hpp:18
An observation class based on statitistics of presence of the notes. We compute a the percentage each...
Definition: Observation.hpp:59
This file defines all the data structures related to music objects.
This file describes the data structures used to represent a hidden Markov model (HMM) ...
static const int TypeID
Mandatory id of the class (must be unique amongst Observation classes)
Definition: Observation.hpp:46
ObsPresenceStats(const Measure &M, double grain)
Construction from a measure.
Describe a musical bar.
Definition: Music.hpp:312
ObsMeasure()
Default constructor.
double distanceFrom(const ObsPresenceStats &other) const __attribute__((pure))
Compute distance from other observation.
HMM::ObsId getClosestObs(const std::vector< ObsPresenceStats > &m) const __attribute__((pure))
Compute the closest observation.