Class DetectionTracker
java.lang.Object
likelihoodDetectionModule.thresholdDetector.DetectionTracker
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
duration()
long
long
void
update
(NormalizedDataUnit ndu) This updates the detections duration, and both the Raw energy and Ratio peak trackers.
-
Constructor Details
-
DetectionTracker
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
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
-
ratioPeakTracker
-
startSample
public long startSample()
-