public class RunningStatisticsImpl extends java.lang.Object implements RunningStatistics
Constructor and Description |
---|
RunningStatisticsImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addObservation(double x)
Adds an observation to the statistics.
|
double |
getCoefficientOfVariance()
coefficient of variance
|
double |
getMean()
Returns the mean of observations.
|
double |
getStandardDeviation()
standard deviation.
|
double |
getVariance()
variance of observations.
|
public void addObservation(double x)
RunningStatistics
addObservation
in interface RunningStatistics
x
- observationpublic double getMean()
RunningStatistics
getMean
in interface RunningStatistics
public double getVariance()
RunningStatistics
getVariance
in interface RunningStatistics
public double getStandardDeviation()
RunningStatistics
getStandardDeviation
in interface RunningStatistics
public double getCoefficientOfVariance()
RunningStatistics
getCoefficientOfVariance
in interface RunningStatistics