AudioPeakFeature Class Reference

#include <Audio.h>

Inheritance diagram for AudioPeakFeature:

NumericalDiscreteFeature PersistantFeature Feature List of all members.

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

Detailed Description

Counts the peaks in the input signal

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.


Constructor & Destructor Documentation

AudioPeakFeature::AudioPeakFeature long *  minval,
long *  maxval
[inline, protected]
 

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.

Parameters:
minval A reference to a static variable (it must be same for all created objects of _one_ feature) for persistantly storing the minimum value.
maxval A reference to a static variable (it must be same for all created objects of _one_ feature) for persistantly storing the maximum value.

AudioPeakFeature::AudioPeakFeature long *  minval,
long *  maxval,
unsigned  peaks
[inline, protected]
 

Sample constructor

This constructor initializes the feature with a specific value and should thus be used for samples.

Parameters:
minval A reference to a static variable (it must be same for all created objects of _one_ feature) for persistantly storing the minimum value.
maxval A reference to a static variable (it must be same for all created objects of _one_ feature) for persistantly storing the maximum value.
peaks The sample value.


Member Function Documentation

virtual const string AudioPeakFeature::getName  )  const [inline, virtual]
 

Query a features name

Returns:
Name of the Feature in the format "Featureprovider.Feature"

Reimplemented from NumericalDiscreteFeature.

string AudioPeakFeature::toString  )  const [virtual]
 

This is only for testing.

Reimplemented from NumericalDiscreteFeature.


The documentation for this class was generated from the following files:
Generated on Mon Jun 5 10:20:49 2006 for Intelligence.kdevelop by  doxygen 1.4.6