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 RunningAverage
datum
- new item to add to the running averagepublic void removeDatum(double datum)
removeDatum
in interface RunningAverage
datum
- item to remove to the running averagepublic void changeDatum(double delta)
changeDatum
in interface RunningAverage
delta
- amount by which to change a datum in the running averagepublic int getCount()
getCount
in interface RunningAverage
public double getAverage()
getAverage
in interface RunningAverage
public double getStandardDeviation()
getStandardDeviation
in interface RunningAverageAndStdDev
public RunningAverageAndStdDev inverse()
inverse
in interface RunningAverage
inverse
in interface RunningAverageAndStdDev
Copyright © 2008–2015 The Apache Software Foundation. All rights reserved.