public class SpectralFlux extends JAudioFeatureExtractor
featureExtractor
Constructor and Description |
---|
SpectralFlux()
Default constructor
|
SpectralFlux(AudioStream as)
Constructor that's chainable.
|
Modifier and Type | Method and Description |
---|---|
double[][] |
getExtraInputs(double[] samples,
double sampleRate)
Returns the extra inputs required by a specific feature extractor
|
int |
getNumberToStore()
Get the number of spectral flux values to store in the feature
|
void |
setNumberToStore(int numberToStore)
Set the number of spectral flux values to store in the feature
|
extractFeature, getLastCalculatedFeature, process, process, process, process, setLastCalculatedFeature
getLength, getUnderlyingStream, nextSampleChunk, process, processingComplete, reset, setUnderlyingStream
iterator, seek
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public SpectralFlux()
public SpectralFlux(AudioStream as)
as
- The stream to chain topublic double[][] getExtraInputs(double[] samples, double sampleRate)
getExtraInputs
in class JAudioFeatureExtractor
samples
- The samples for a single channelsampleRate
- The sample rate of the dataJAudioFeatureExtractor.getExtraInputs(double[], double)
public int getNumberToStore()
public void setNumberToStore(int numberToStore)
numberToStore
- The number of values to store