net.beadsproject.beads.analysis.featureextractors
Class Power

java.lang.Object
  extended by net.beadsproject.beads.analysis.FeatureExtractor<float[],float[]>
      extended by net.beadsproject.beads.analysis.featureextractors.Power

public class Power
extends FeatureExtractor<float[],float[]>

Power calculates the RMS power over a frame directly from an audio signal.


Field Summary
 
Fields inherited from class net.beadsproject.beads.analysis.FeatureExtractor
featureDescriptions, features, name, numFeatures
 
Constructor Summary
Power()
          Instantiates a new Power.
 
Method Summary
 java.lang.String[] getFeatureDescriptions()
          Gets the feature descriptions.
 int getNumberOfFeatures()
          Gets the number of features.
 void process(float[] audioData)
          Process some data of type P (specified by the class def).
 void setNumberOfFeatures(int numFeatures)
          Sets the number of features.
 
Methods inherited from class net.beadsproject.beads.analysis.FeatureExtractor
getFeatures, getName, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Power

public Power()
Instantiates a new Power.

Method Detail

getFeatureDescriptions

public java.lang.String[] getFeatureDescriptions()
Description copied from class: FeatureExtractor
Gets the feature descriptions. Implementing classes should make sure that this array has meaningful content.

Overrides:
getFeatureDescriptions in class FeatureExtractor<float[],float[]>
Returns:
the feature descriptions.

getNumberOfFeatures

public int getNumberOfFeatures()
Description copied from class: FeatureExtractor
Gets the number of features.

Overrides:
getNumberOfFeatures in class FeatureExtractor<float[],float[]>
Returns:
the number of features.

setNumberOfFeatures

public void setNumberOfFeatures(int numFeatures)
Description copied from class: FeatureExtractor
Sets the number of features.

Overrides:
setNumberOfFeatures in class FeatureExtractor<float[],float[]>
Parameters:
numFeatures - the new number of features.

process

public void process(float[] audioData)
Description copied from class: FeatureExtractor
Process some data of type P (specified by the class def). This method must be overidden by implementing classes.

Specified by:
process in class FeatureExtractor<float[],float[]>
Parameters:
audioData - the data.