Package gpl

Class PeakDetector

java.lang.Object
gpl.PeakDetector

public class PeakDetector extends Object
Really simple detector, looking for peaks rising above some threshold.
Author:
Doug Gillespie
  • Constructor Details

    • PeakDetector

      public PeakDetector(GPLControlledUnit gplControlledUnit, int minGap, int binLo, int binHi)
  • 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

      public double getSliceEnergy(FFTDataUnit fftDataUnit)
      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()