public class CurvePeakTracker
extends java.lang.Object
Constructor and Description |
---|
CurvePeakTracker(long timeMilliseconds,
long sample,
double curveValue)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
long |
peakSample() |
long |
peakTime() |
double |
peakValue() |
void |
update(long timeMilliseconds,
long sample,
double curveValue)
Update the tracker with new data point.
|
public CurvePeakTracker(long timeMilliseconds, long sample, double curveValue)
timeMilliseconds
- The start time in millisecondssample
- The start sample numbercurveValue
- The starting valuepublic void update(long timeMilliseconds, long sample, double curveValue)
timeMilliseconds
- The time of the current samplesample
- The sample number of the current samplecurveValue
- The current data point valuepublic long peakTime()
public long peakSample()
public double peakValue()