AudioMeanFeature Class Reference

#include <Audio.h>

Inheritance diagram for AudioMeanFeature:

NumericalContinuousFeature PersistantFeature Feature List of all members.

Public Member Functions

virtual const string getName () const
virtual string toString () const

Protected Member Functions

 AudioMeanFeature (double *minval, double *maxval)
 AudioMeanFeature (double *minval, double *maxval, double mean)

Friends

class AudioFeatureProvider

Detailed Description

Calculates the mean level of the input signal

This feature extracts the mean signal level out of the input signal. After each call to nextSample the time window taken for calculating the mean value is cleared.


Constructor & Destructor Documentation

AudioMeanFeature::AudioMeanFeature double *  minval,
double *  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.

AudioMeanFeature::AudioMeanFeature double *  minval,
double *  maxval,
double  mean
[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.
mean The sample value.


Member Function Documentation

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

Query a features name

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

Reimplemented from NumericalContinuousFeature.

string AudioMeanFeature::toString  )  const [virtual]
 

This is only for testing.

Reimplemented from NumericalContinuousFeature.


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