Marsyas
0.6.0-alpha
|
Incorporates the ratio of the higest peak to minimal/average peak of each observation samplewise to the output vector. More...
#include <PeakRatio.h>
Inherits MarSystem.
Public Member Functions | |
MarSystem * | clone () const |
void | myProcess (realvec &in, realvec &out) |
Processes data. | |
PeakRatio (std::string name) | |
PeakRatio (const PeakRatio &a) | |
~PeakRatio () |
Incorporates the ratio of the higest peak to minimal/average peak of each observation samplewise to the output vector.
Take the values of the input realvec and put them in the output vector. Then take the maximum value and divide either by the average or minimum value. Both results are appended to the output as Observations.
Normally this Marsystem expects as input a vector of chromas (i.e. the output of a chroma generator like Spectrum2Chroma). In case of multiple samples per Observation, the Ratios are computed sample per sample over all observations.
Controls: none
Definition at line 41 of file PeakRatio.h.
PeakRatio | ( | std::string | name | ) |
Marsystem for incorporating the ratio of the higest peak to minimal/average peak of each observation samplewise to the output vector
This Marsystem appends the ratio of the higest peak to minimal peak and ratio of the higest peak to average peak of each observation samplewise to the output vector.
Definition at line 36 of file PeakRatio.cpp.
Definition at line 49 of file PeakRatio.cpp.
~PeakRatio | ( | ) |
Definition at line 57 of file PeakRatio.cpp.
Implements MarSystem.
Definition at line 62 of file PeakRatio.cpp.
Processes data.
in | Input data to read. |
out | Output data to write. |
Implement this method in subclass to define specific data processing.
Implements MarSystem.
Definition at line 97 of file PeakRatio.cpp.