public final class FixedRunningAverageAndStdDev extends FixedRunningAverage implements RunningAverageAndStdDev
A simple class that represents a fixed value of an average, count and standard deviation. This is useful
when an API needs to return RunningAverageAndStdDev but is not in a position to accept
updates to it.
| Constructor and Description |
|---|
FixedRunningAverageAndStdDev(double average,
double stdDev,
int count) |
| Modifier and Type | Method and Description |
|---|---|
double |
getStandardDeviation() |
RunningAverageAndStdDev |
inverse() |
String |
toString() |
addDatum, changeDatum, getAverage, getCount, removeDatumclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddDatum, changeDatum, getAverage, getCount, removeDatumpublic FixedRunningAverageAndStdDev(double average,
double stdDev,
int count)
public RunningAverageAndStdDev inverse()
inverse in interface RunningAverageinverse in interface RunningAverageAndStdDevinverse in class FixedRunningAveragepublic String toString()
toString in class FixedRunningAveragepublic double getStandardDeviation()
getStandardDeviation in interface RunningAverageAndStdDevCopyright © 2008–2017 The Apache Software Foundation. All rights reserved.