Package bftsmart.tom.util
Class Storage
- java.lang.Object
-
- bftsmart.tom.util.Storage
-
public class Storage extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Storage(int size)Creates a new instance of Storage
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetAverage(boolean limit)intgetCount()doublegetDP(boolean limit)longgetMax(boolean limit)longgetPercentile(double percentile)long[]getValues()voidreset()voidstore(long value)
-
-
-
Method Detail
-
getCount
public int getCount()
-
reset
public void reset()
-
store
public void store(long value)
-
getAverage
public double getAverage(boolean limit)
-
getDP
public double getDP(boolean limit)
-
getValues
public long[] getValues()
-
getMax
public long getMax(boolean limit)
-
getPercentile
public long getPercentile(double percentile)
-
-