edu.harvard.syrah.pyxida.nc.lib
Class WindowStatistic
java.lang.Object
edu.harvard.syrah.pyxida.nc.lib.WindowStatistic
public class WindowStatistic
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
debug
public static boolean debug
max_history
protected final int max_history
samples
protected final java.util.List<edu.harvard.syrah.pyxida.nc.lib.WindowStatistic.Statistic> samples
dirty
protected boolean dirty
previousPercentile
protected double previousPercentile
previousValue
protected double previousValue
WindowStatistic
public WindowStatistic(int _max_history)
clear
public void clear()
add
public void add(double sample)
getSize
public int getSize()
withinVariance
public boolean withinVariance(double pct)
getPercentile
public double getPercentile(double p)
calcPercentile
protected double calcPercentile(double p)
getSum
protected double getSum()
getMean
public double getMean()