Class CurvePeakTracker
java.lang.Object
likelihoodDetectionModule.thresholdDetector.CurvePeakTracker
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 Summary
ConstructorDescriptionCurvePeakTracker
(long timeMilliseconds, long sample, double curveValue) Constructor. -
Method Summary
-
Constructor Details
-
CurvePeakTracker
public CurvePeakTracker(long timeMilliseconds, long sample, double curveValue) Constructor.- Parameters:
timeMilliseconds
- The start time in millisecondssample
- The start sample numbercurveValue
- 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 samplesample
- The sample number of the current samplecurveValue
- 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
-