public class ShortTermSpectrumAnalyser extends FrameBasedAnalyser<double[]>
FrameBasedAnalyser.FrameAnalysisResult<T>| Modifier and Type | Field and Description |
|---|---|
protected double[] |
real |
analysisResultsframe, frameLength, frameShift, frameStart, nextFrameStart, processor, samplingRate, signal, totalRead, validSamplesInFrame| Constructor and Description |
|---|
ShortTermSpectrumAnalyser(DoubleDataSource signal,
int fftSize,
Window window,
int frameShift,
int samplingRate)
Initialise a FrameBasedAnalyser.
|
| Modifier and Type | Method and Description |
|---|---|
double[] |
analyse(double[] frame)
Apply this FrameBasedAnalyser to the given data.
|
int |
getFFTWindowLength() |
double |
getFrequencyResolution()
The distance of two adjacent points on the frequency axis, in Hertz.
|
analyseAllFrames, analyseAvailableFrames, analyseNextFrame, constructAnalysisResultgetCurrentFrame, getData, getFrameLengthSamples, getFrameLengthTime, getFrameShiftSamples, getFrameShiftTime, getFrameStartSamples, getFrameStartTime, getNextFrame, getSamplingRate, hasMoreData, main, resetInternalTimer, stopWhenTouchingEnd, validSamplesInFramepublic ShortTermSpectrumAnalyser(DoubleDataSource signal, int fftSize, Window window, int frameShift, int samplingRate)
signal - the signal source to read fromfftSize - the size of the FFT to usewindow - the window function to apply to each frameframeShift - the number of samples by which to shift the window from one frame analysis to the next; if this is smaller than
window.getLength(), frames will overlap.samplingRate - the number of samples in one second.IllegalArgumentException - if the window is longer than fftSize, or fftSize is not a power of two.public double[] analyse(double[] frame)
analyse in class FrameBasedAnalyser<double[]>frame - the data to analyse, which must be of the length prescribed by this FrameBasedAnalyser, i.e. by works like
FrameProvider.getFrameLengthSamples() .IllegalArgumentException - if frame does not have the prescribed lengthpublic double getFrequencyResolution()
public int getFFTWindowLength()
Copyright © 2000–2016 DFKI GmbH. All rights reserved.