Class StatBucket
java.lang.Object
io.nosqlbench.nb.api.stats.StatBucket
This is a relatively efficient statistics bucket which can maintain moving
aggregates over a window of samples for count, mean, variance, stddev, sum.
This is particularly useful when you know that each update to the data
will likely be used in a query.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
StatBucket
public StatBucket() -
StatBucket
public StatBucket(int sampleWindow) -
StatBucket
public StatBucket(double[] samples)
-
-
Method Details
-
apply
-
variance
public double variance() -
stddev
public double stddev() -
count
public int count() -
mean
public double mean() -
equals
-
hashCode
-
toString
-
primed
public boolean primed() -
getMin
public double getMin() -
getMax
public double getMax() -
getAverage
public double getAverage() -
getCount
public double getCount() -
getSum
public double getSum()
-