net.sourceforge.jabm.util
Class TimeSeriesWindow
java.lang.Object
net.sourceforge.jabm.util.TimeSeriesWindow
public class TimeSeriesWindow
- extends java.lang.Object
-
-
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
values
protected double[] values
windowSize
protected int windowSize
i
protected int i
TimeSeriesWindow
public TimeSeriesWindow(int windowSize)
getWindowSize
public int getWindowSize()
addValue
public void addValue(double value)
getValue
public double getValue(int lag)
getSummaryStatistics
public org.apache.commons.math3.stat.descriptive.SummaryStatistics getSummaryStatistics()
getSimpleMovingAverage
public double getSimpleMovingAverage()