|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.beadsproject.beads.analysis.FeatureExtractor<float[],float[]> net.beadsproject.beads.analysis.featureextractors.SpectralCentroid
public class SpectralCentroid
SpectralCentroid calculates the spectral centroid of a signal. It should be set up to listen to a PowerSpectrum
object.
Field Summary |
---|
Fields inherited from class net.beadsproject.beads.analysis.FeatureExtractor |
---|
featureDescriptions, features, name, numFeatures |
Constructor Summary | |
---|---|
SpectralCentroid(float sampleRate)
Instantiates a new SpectralCentroid. |
Method Summary | |
---|---|
void |
process(float[] powerSpectrum)
Process some data of type P (specified by the class def). |
void |
setNumFeatures(int numFeatures)
|
Methods inherited from class net.beadsproject.beads.analysis.FeatureExtractor |
---|
getFeatureDescriptions, 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 |
---|
public SpectralCentroid(float sampleRate)
sampleRate
- the sample rate in samples per second.Method Detail |
---|
public void process(float[] powerSpectrum)
FeatureExtractor
process
in class FeatureExtractor<float[],float[]>
powerSpectrum
- the data.public void setNumFeatures(int numFeatures)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |