Marsyas  0.5.0-beta1
Public Member Functions
PeakRatio Class Reference

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

MarSystemclone () const
void myProcess (realvec &in, realvec &out)
 Processes data.
 PeakRatio (std::string name)
 PeakRatio (const PeakRatio &a)
 ~PeakRatio ()

Detailed Description

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.


Constructor & Destructor Documentation

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.

PeakRatio ( const PeakRatio a)

Definition at line 49 of file PeakRatio.cpp.

~PeakRatio ( )

Definition at line 57 of file PeakRatio.cpp.


Member Function Documentation

MarSystem * clone ( ) const [virtual]

Implements MarSystem.

Definition at line 62 of file PeakRatio.cpp.

void myProcess ( realvec in,
realvec out 
) [virtual]

Processes data.

Parameters:
inInput data to read.
outOutput data to write.

Implement this method in subclass to define specific data processing.

Implements MarSystem.

Definition at line 97 of file PeakRatio.cpp.


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