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() |
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.