Class BetterPeakDetector

All Implemented Interfaces:
PamObserver, ProcessAnnotator

public class BetterPeakDetector extends BasicPeakDetector
  • Constructor Details

  • Method Details

    • searchForPeaks

      public void searchForPeaks(PamObservable obs, FFTDataUnit newDataUnit)
      Overrides:
      searchForPeaks in class PeakDetector
      Parameters:
      obs - PamObservable - always a PamDataBlock
      newDataUnit - The latest PamDataUnit added to the PamDataBlock Takes a new block of FFT data and creates a series of peaks based on parts of the sectrum being above some threshold. Rather than add individual peaks to the output data block, the peaks are stored in a new ArrayList and the array list is added to the output block. This reduces the amount of traffic to the output blocks listeners and will make it easier for the process linking the peaks to navigate between successive peak slices.
    • getPeakDetectorName

      public String getPeakDetectorName()
      Overrides:
      getPeakDetectorName in class BasicPeakDetector