net.beadsproject.beads.analysis.featureextractors
Class PowerSpectrum

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

public class PowerSpectrum
extends FFT

PowerSpectrum calculates the power spectrum from a segmented audio signal. PowerSpectrum forwards the full power spectrum data to its listeners.


Field Summary
 
Fields inherited from class net.beadsproject.beads.analysis.featureextractors.FFT
fftImag, fftReal, listeners
 
Fields inherited from class net.beadsproject.beads.analysis.FeatureExtractor
featureDescriptions, features, name, numFeatures
 
Constructor Summary
PowerSpectrum()
          Instantiates a new PowerSpectrum.
 
Method Summary
 float[] getFeatures()
          Gets the current features of type R, specified in the class def.
 void process(float[] data)
          Process some data of type P (specified by the class def).
 
Methods inherited from class net.beadsproject.beads.analysis.featureextractors.FFT
addListener, calculateImaginary, calculateReal, fft
 
Methods inherited from class net.beadsproject.beads.analysis.FeatureExtractor
getFeatureDescriptions, getName, getNumberOfFeatures, setName, setNumberOfFeatures
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PowerSpectrum

public PowerSpectrum()
Instantiates a new PowerSpectrum.

Method Detail

process

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

Overrides:
process in class FFT
Parameters:
data - the data.

getFeatures

public float[] getFeatures()
Description copied from class: FeatureExtractor
Gets the current features of type R, specified in the class def.

Overrides:
getFeatures in class FeatureExtractor<float[],float[]>
Returns:
the features.