Package gpl

Class DetectedPeak

java.lang.Object
gpl.DetectedPeak

public class DetectedPeak extends Object
  • Constructor Details

    • DetectedPeak

      public DetectedPeak(FFTDataUnit fftDataUnit, double data, double[] wData, int peakBin)
  • Method Details

    • addPoint

      public void addPoint(FFTDataUnit fftDataUnit, double data, double[] wData, int peakBin)
      Add a point that was above threshold.
      Parameters:
      data -
      wData -
      peakBin -
      fftSlice -
      timeMilliseconds -
    • addDeadPoint

      public void addDeadPoint(double[] wData, FFTDataUnit fftDataUnit)
      Add a point that was below threshold. Need to keep adding whitened data even if it's not above threshold
      Parameters:
      wData -
    • removeDead

      public void removeDead()
      Called when peak is completed to remove any whitened data that were added right at the end
    • getStartSample

      public long getStartSample()
      Get the start sample, which is the start sample of the first FFT in the peak NOT a count of FFt's which is wrong when starts of files are skipped in Acquisition
      Returns:
      first sample of first FFT
    • getEndSample

      public long getEndSample()
      Get the end sample, which is the start sample of the first FFT in the peak NOT a count of FFt's which is wrong when starts of files are skipped in Acquisition
      Returns:
      last sample of last FFT
    • getwDataList

      public ArrayList<double[]> getwDataList()
      Returns:
      the wDataList
    • getFFTList

      public ArrayList<FFTDataUnit> getFFTList()
      Returns:
      List of FFT Data units in the peak
    • getStartBin

      public int getStartBin()
      Returns:
      the startBin
    • getEndBin

      public int getEndBin()
      Returns:
      the endBin
    • getMaxValue

      public double getMaxValue()
      Returns:
      the maxValue
    • getStartMillis

      public long getStartMillis()
      Returns:
      the startMillis
    • getEndMillis

      public long getEndMillis()
      Returns:
      the endMillis
    • getMinFBin

      public int getMinFBin()
      Returns:
      the minFBin
    • getMaxFBin

      public int getMaxFBin()
      Returns:
      the maxFBin