@InterfaceAudience.Private public class RollingStatCalculator extends Object
| Constructor and Description |
|---|
RollingStatCalculator(int rollingPeriod)
Creates a RollingStatCalculator with given number of rolling periods.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getDeviation()
Returns deviation of the data values that are in the current list of data values
|
double |
getMean()
Returns mean of the data values that are in the current list of data values
|
void |
insertDataValue(long data)
Inserts given data value to array of data values to be considered for statistics calculation
|
public RollingStatCalculator(int rollingPeriod)
public void insertDataValue(long data)
public double getMean()
public double getDeviation()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.