net.beadsproject.beads.analysis.featureextractors
Class Frequency

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

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

Frequency processes spectral data forwarded to it by a PowerSpectrum to determine the best estimate for the frequency of the current signal.


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

Constructor Detail

Frequency

public Frequency(float sampleRate)
Instantiates a new Frequency.

Parameters:
context - the AudioContext.
Method Detail

process

public void process(float[] powerSpectrum)
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:
powerSpectrum - the data.

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.