public class TimeSeriesWindow extends Object
Modifier and Type | Field and Description |
---|---|
protected int |
i |
protected double[] |
values |
protected int |
windowSize |
Constructor and Description |
---|
TimeSeriesWindow(int windowSize) |
Modifier and Type | Method and Description |
---|---|
void |
addValue(double value) |
double |
getSimpleMovingAverage() |
org.apache.commons.math3.stat.descriptive.SummaryStatistics |
getSummaryStatistics() |
double |
getValue(int lag) |
int |
getWindowSize() |
public int getWindowSize()
public void addValue(double value)
public double getValue(int lag)
public org.apache.commons.math3.stat.descriptive.SummaryStatistics getSummaryStatistics()
public double getSimpleMovingAverage()
Copyright © 2014. All rights reserved.