net.beadsproject.beads.analysis.featureextractors
Class PowerSpectrum

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

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

PowerSpectrum calculates the power spectrum from the output of FFT. PowerSpectrum forwards the full power spectrum data to its listeners.


Field Summary
 
Fields inherited from class net.beadsproject.beads.analysis.FeatureExtractor
featureDescriptions, features, name, numFeatures
 
Constructor Summary
PowerSpectrum()
          Instantiates a new PowerSpectrum.
 
Method Summary
 void process(TimeStamp startTime, TimeStamp endTime, float[][] data)
          Process some data of type P (specified by the class def).
 
Methods inherited from class net.beadsproject.beads.analysis.FeatureExtractor
addListener, forward, getFeatureDescriptions, getFeatures, getName, getNumberOfFeatures, removeListener, setName, setNumberOfFeatures
 
Methods inherited from class net.beadsproject.beads.core.Bead
getKillListener, isDeleted, isPaused, kill, message, messageReceived, pause, setKillListener, start, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PowerSpectrum

public PowerSpectrum()
Instantiates a new PowerSpectrum.

Method Detail

process

public void process(TimeStamp startTime,
                    TimeStamp endTime,
                    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.

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