net.beadsproject.beads.analysis.featureextractors
Class PowerSpectrum
java.lang.Object
net.beadsproject.beads.core.Bead
net.beadsproject.beads.analysis.FeatureExtractor<float[],float[][]>
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.
Constructor Summary |
PowerSpectrum()
Instantiates a new PowerSpectrum. |
Method Summary |
void |
addListener(FeatureExtractor<?,float[]> fe)
Adds a FeatureExtractor as a listener. |
void |
process(float[][] data)
Process some data of type P (specified by the class def). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
listeners
protected java.util.ArrayList<FeatureExtractor<?,float[]>> listeners
PowerSpectrum
public PowerSpectrum()
- Instantiates a new PowerSpectrum.
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.
- Specified by:
process
in class FeatureExtractor<float[],float[][]>
- Parameters:
data
- the data.
addListener
public void addListener(FeatureExtractor<?,float[]> fe)
- Adds a FeatureExtractor as a listener.
- Parameters:
the
- FeatureExtractor.