|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.icdif.audio.analysis.DetectionFunction
public abstract class DetectionFunction
Constructor Summary | |
---|---|
DetectionFunction(AudioDecoder decoder,
int sampleWindowSize,
int hopSize,
boolean isHamming)
Initiates this class, by supplying the parameters needed |
Method Summary | |
---|---|
abstract java.util.ArrayList<java.lang.Float> |
getDetectionFunction()
Abstract class that returns the values of the detection function |
FFT |
getFft()
Gets the instance of the FFT used for calculus |
DetectionFunction.FFTComponents |
nextPhase()
Calculates the Fourier Transform of the samples, by using the hoping margin defined in the constructor and returning the real and imaginary parts of the transform or null, when there is no more data to read. |
float[] |
nextSpectrum()
Calculates the spectrum of the samples, by using the Fourier Transform and an hoping margin defined in the constructor, returning the spectrum or null, when there is no more data to read. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DetectionFunction(AudioDecoder decoder, int sampleWindowSize, int hopSize, boolean isHamming)
decoder
- The AudioDecoder that will decode the samplessampleWindowSize
- The size of the windowhopSize
- The size of the overlap (it has to be minor than the
sampleWindow)isHamming
- If the samples are to be smoothed in the FFT by the use of the
Hamming FunctionMethod Detail |
---|
public float[] nextSpectrum()
public DetectionFunction.FFTComponents nextPhase()
public FFT getFft()
public abstract java.util.ArrayList<java.lang.Float> getDetectionFunction()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |