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, removeDatum
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addDatum, changeDatum, getAverage, getCount, removeDatum
public FixedRunningAverageAndStdDev(double average, double stdDev, int count)
public RunningAverageAndStdDev inverse()
inverse
in interface RunningAverage
inverse
in interface RunningAverageAndStdDev
inverse
in class FixedRunningAverage
public String toString()
toString
in class FixedRunningAverage
public double getStandardDeviation()
getStandardDeviation
in interface RunningAverageAndStdDev
Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.