Generate an accompaniement for a given melody
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ObsMeasure Class Reference
Inheritance diagram for ObsMeasure:
Measure

Public Member Functions

 ObsMeasure (const Measure &M)
 Construction from a measure. More...
 
 ObsMeasure ()
 Default constructor. More...
 
HMM::ObsId getClosestObs (const std::vector< ObsMeasure > &m)
 Compute the closest observation. More...
 

Static Public Attributes

static const int TypeID = 0
 Mandatory id of the class (must be unique amongst Observation classes)
 

Friends

std::ostream & operator<< (std::ostream &os, const ObsMeasure &m)
 

Constructor & Destructor Documentation

ObsMeasure::ObsMeasure ( const Measure M)

Construction from a measure.

Parameters
MThe measure from which the observation must be deduced
ObsMeasure::ObsMeasure ( )

Default constructor.

Member Function Documentation

HMM::ObsId ObsMeasure::getClosestObs ( const std::vector< ObsMeasure > &  m)

Compute the closest observation.

Given a set of known observation, this function has to find the closest match, if not an exact match

Parameters
mThe map giving the known observations and their corresponding Ids
Returns
The id of the selected observation.

The documentation for this class was generated from the following file: