Package gpl
Class PeakDetector
java.lang.Object
gpl.PeakDetector
Really simple detector, looking for peaks rising above some
threshold.
- Author:
- Doug Gillespie
-
Constructor Summary
ConstructorDescriptionPeakDetector
(GPLControlledUnit gplControlledUnit, int minGap, int binLo, int binHi) -
Method Summary
Modifier and TypeMethodDescriptiondetectPeaks
(FFTDataUnit fftDataUnit, double[] whiteData, double data, double lowThreshold, double highThreshold) Look for peaks in the detection statistic.int
double
getSliceEnergy
(FFTDataUnit fftDataUnit) Get the energy within frequency limits for a slice being added to a peak
-
Constructor Details
-
PeakDetector
-
-
Method Details
-
detectPeaks
public DetectedPeak detectPeaks(FFTDataUnit fftDataUnit, double[] whiteData, double data, double lowThreshold, double highThreshold) Look for peaks in the detection statistic.- Parameters:
fftDataUnit
-whiteData
-data
-lowThreshold
-highThreshold
-- Returns:
- mostly null, a non null Peak when one is finished invalid input: '&' complete.
-
getSliceEnergy
Get the energy within frequency limits for a slice being added to a peak- Parameters:
fftDataUnit
-- Returns:
- sum magsq of FFT data.
-
getPeakState
public int getPeakState()
-