@InterfaceAudience.Private public class RollingStatCalculator extends Object
| 构造器和说明 |
|---|
RollingStatCalculator(int rollingPeriod)
Creates a RollingStatCalculator with given number of rolling periods.
|
| 限定符和类型 | 方法和说明 |
|---|---|
double |
getDeviation() |
double |
getMean() |
void |
insertDataValue(long data)
Inserts given data value to array of data values to be considered for statistics calculation
|
public RollingStatCalculator(int rollingPeriod)
rollingPeriod - public void insertDataValue(long data)
data - public double getMean()
public double getDeviation()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.