net.sourceforge.jabm.util
Class TimeSeriesWindow

java.lang.Object
  extended by net.sourceforge.jabm.util.TimeSeriesWindow

public class TimeSeriesWindow
extends java.lang.Object

 

Field Summary
protected  int i
           
protected  double[] values
           
protected  int windowSize
           
 
Constructor Summary
TimeSeriesWindow(int windowSize)
           
 
Method Summary
 void addValue(double value)
           
 double getSimpleMovingAverage()
           
 org.apache.commons.math3.stat.descriptive.SummaryStatistics getSummaryStatistics()
           
 double getValue(int lag)
           
 int getWindowSize()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

values

protected double[] values

windowSize

protected int windowSize

i

protected int i
Constructor Detail

TimeSeriesWindow

public TimeSeriesWindow(int windowSize)
Method Detail

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