public class ShortTermLogSpectrumAnalyser extends ShortTermSpectrumAnalyser
FrameBasedAnalyser.FrameAnalysisResult<T>
real
analysisResults
frame, frameLength, frameShift, frameStart, nextFrameStart, processor, samplingRate, signal, totalRead, validSamplesInFrame
Constructor and Description |
---|
ShortTermLogSpectrumAnalyser(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.
|
getFFTWindowLength, getFrequencyResolution
analyseAllFrames, analyseAvailableFrames, analyseNextFrame, constructAnalysisResult
getCurrentFrame, getData, getFrameLengthSamples, getFrameLengthTime, getFrameShiftSamples, getFrameShiftTime, getFrameStartSamples, getFrameStartTime, getNextFrame, getSamplingRate, hasMoreData, main, resetInternalTimer, stopWhenTouchingEnd, validSamplesInFrame
public ShortTermLogSpectrumAnalyser(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 ShortTermSpectrumAnalyser
frame
- the data to analyse, which must be of the length prescribed by this FrameBasedAnalyser, i.e. by
FrameProvider.getFrameLengthSamples()
.IllegalArgumentException
- if frame does not have the prescribed lengthCopyright © 2000–2016 DFKI GmbH. All rights reserved.