AudioBandFeature Class Reference

#include <Audio.h>

Inheritance diagram for AudioBandFeature:

NumericalContinuousFeature PersistantFeature Feature List of all members.

Public Member Functions

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

Protected Member Functions

 AudioBandFeature (double *minval, double *maxval)
 AudioBandFeature (double *minval, double *maxval, double val)

Friends

class AudioFeatureProvider

Detailed Description

Represents a subband

This feature represents a subband of the frequency spectrum. The calculation is performed using the FFT algorithm. The feature has to be referenced as "Audio.Band.[n]" where n is a number in the intervall [0; bands]. The maximum number of bands is a global variable defined in the AudioFeatureProvider.


Constructor & Destructor Documentation

AudioBandFeature::AudioBandFeature 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.

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


Member Function Documentation

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

Query a features name

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

Reimplemented from NumericalContinuousFeature.

string AudioBandFeature::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