#include <Audio.h>
Inheritance diagram for AudioPeakFeature:
Public Member Functions | |
virtual const string | getName () const |
virtual string | toString () const |
Protected Member Functions | |
AudioPeakFeature (long *minval, long *maxval) | |
AudioPeakFeature (long *minval, long *maxval, unsigned peaks) | |
Friends | |
class | AudioFeatureProvider |
This feature counts the peaks in the input signal. If there are high peaks the extractor becomes less sensible to lower peaks, if there are only a few low peaks the extractor becomes more sensible to them. When nextSample is called, the peak counter is reset to 0.
|
Feature constructor This constructor initializes the feature with a random value and should thus only be used for creating e.g. prototypes of points in a clustering space. For creating a specific sample of a feature, the second constructor should be used.
|
|
Sample constructor This constructor initializes the feature with a specific value and should thus be used for samples.
|
|
Query a features name
Reimplemented from NumericalDiscreteFeature. |
|
This is only for testing. Reimplemented from NumericalDiscreteFeature. |