public final class InvertedRunningAverageAndStdDev extends Object implements RunningAverageAndStdDev
| Constructor and Description |
|---|
InvertedRunningAverageAndStdDev(RunningAverageAndStdDev delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDatum(double datum) |
void |
changeDatum(double delta) |
double |
getAverage() |
int |
getCount() |
double |
getStandardDeviation() |
RunningAverageAndStdDev |
inverse() |
void |
removeDatum(double datum) |
public InvertedRunningAverageAndStdDev(RunningAverageAndStdDev delegate)
public void addDatum(double datum)
addDatum in interface RunningAveragedatum - new item to add to the running averagepublic void removeDatum(double datum)
removeDatum in interface RunningAveragedatum - item to remove to the running averagepublic void changeDatum(double delta)
changeDatum in interface RunningAveragedelta - amount by which to change a datum in the running averagepublic int getCount()
getCount in interface RunningAveragepublic double getAverage()
getAverage in interface RunningAveragepublic double getStandardDeviation()
getStandardDeviation in interface RunningAverageAndStdDevpublic RunningAverageAndStdDev inverse()
inverse in interface RunningAverageinverse in interface RunningAverageAndStdDevCopyright © 2008–2017 The Apache Software Foundation. All rights reserved.