Class CurvePeakTracker

java.lang.Object
likelihoodDetectionModule.thresholdDetector.CurvePeakTracker

public class CurvePeakTracker extends Object
This class is used to track the time (both sample and milliseconds since 01-01-1970), and the value of a curve. It is used to track energy peaks in the detector
Author:
Dave Flogeras
  • Constructor Details

    • CurvePeakTracker

      public CurvePeakTracker(long timeMilliseconds, long sample, double curveValue)
      Constructor.
      Parameters:
      timeMilliseconds - The start time in milliseconds
      sample - The start sample number
      curveValue - The starting value
  • Method Details

    • update

      public void update(long timeMilliseconds, long sample, double curveValue)
      Update the tracker with new data point.
      Parameters:
      timeMilliseconds - The time of the current sample
      sample - The sample number of the current sample
      curveValue - The current data point value
    • peakTime

      public long peakTime()
      Returns:
      The time of the peak value
    • peakSample

      public long peakSample()
      Returns:
      The sample number of the peak value
    • peakValue

      public double peakValue()
      Returns:
      The peak value