An observation class based on statitistics of presence of the notes. We compute a the percentage each note appears in the measure. As a distance, we use the distance induced by the infinite norm on these vectors of percentage.
More...
#include <Observation.hpp>
|
static const int | TypeID = 1 |
| Mandatory id of the class (must be unique amongst Observation classes)
|
|
An observation class based on statitistics of presence of the notes. We compute a the percentage each note appears in the measure. As a distance, we use the distance induced by the infinite norm on these vectors of percentage.
ObsPresenceStats::ObsPresenceStats |
( |
const Measure & |
M, |
|
|
double |
grain |
|
) |
| |
Construction from a measure.
- Parameters
-
M | The measure from which the observation must be deduced |
Compute distance from other observation.
- Parameters
-
other | the other observation |
- Returns
- the distance (according to infinite norm)
HMM::ObsId ObsPresenceStats::getClosestObs |
( |
const std::vector< ObsPresenceStats > & |
m | ) |
const |
Compute the closest observation.
Given a set of known observation, this function has to find the closest match, if not an exact match. The distance used is based on the infinite norm.
- Parameters
-
m | The vector giving the known observations |
- Returns
- The id of the selected observation.
The documentation for this class was generated from the following file: