Class DetectionTracker

java.lang.Object
likelihoodDetectionModule.thresholdDetector.DetectionTracker

public class DetectionTracker extends Object
This class is used to track statistics about a running detection. Currently it remembers the startTime (in ms since 01-01-1970), the startSample number. Then it calculates the duration (in samples), and uses two CurvePeakTracker objects to track the peak, time, and sample number of the peak in the raw energy, as well as the peak in the SNR
Author:
Dave Flogeras
  • Constructor Details

    • DetectionTracker

      public DetectionTracker(int dataIndex, NormalizedDataUnit ndu)
      Constructor. This constructs a DetectionTracker, and seeds its initial values.
      Parameters:
      dataIndex - The index into the NormalizedDataUnit's data[] that is associated with this Tracker.
      ndu - The first data update.
  • Method Details

    • update

      public void update(NormalizedDataUnit ndu)
      This updates the detections duration, and both the Raw energy and Ratio peak trackers.
      Parameters:
      ndu - The data describing this update.
    • startTime

      public long startTime()
    • duration

      public long duration()
    • rawEnergyPeakTracker

      public CurvePeakTracker rawEnergyPeakTracker()
    • ratioPeakTracker

      public CurvePeakTracker ratioPeakTracker()
    • startSample

      public long startSample()