Class StripedHistogram
java.lang.Object
org.terracotta.statistics.derived.histogram.Striped<BarSplittingBiasedHistogram>
org.terracotta.statistics.derived.histogram.StripedHistogram
- All Implemented Interfaces:
Histogram
-
Nested Class Summary
Nested classes/interfaces inherited from class org.terracotta.statistics.derived.histogram.Striped
Striped.Cell<T>, Striped.CellSpliterator<T>Nested classes/interfaces inherited from interface org.terracotta.statistics.derived.histogram.Histogram
Histogram.Bucket -
Constructor Summary
ConstructorsConstructorDescriptionStripedHistogram(double maxCoefficient, double phi, int expansionFactor, int bucketCount, double barEpsilon, long window) StripedHistogram(double phi, int bucketCount, long window) StripedHistogram(int bucketCount, long window) -
Method Summary
Modifier and TypeMethodDescriptionprivate double[]evaluateQuantileFromMax(double quantile) private double[]evaluateQuantileFromMin(double quantile) voidevent(double value, long time) voidexpire(long time) private static List<double[]>flatten(double[] a, double[] b) Returns the histograms bucketsdouble[]getQuantileBounds(double quantile) Returns the bounds[minimum, maximum)on the given quantile.(package private) static voidlongsize()Methods inherited from class org.terracotta.statistics.derived.histogram.Striped
advanceProbe, process, stream, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.terracotta.statistics.derived.histogram.Histogram
getMaximum, getMinimum
-
Constructor Details
-
StripedHistogram
public StripedHistogram(double maxCoefficient, double phi, int expansionFactor, int bucketCount, double barEpsilon, long window) -
StripedHistogram
public StripedHistogram(int bucketCount, long window) -
StripedHistogram
public StripedHistogram(double phi, int bucketCount, long window)
-
-
Method Details
-
getBuckets
Description copied from interface:HistogramReturns the histograms buckets- Specified by:
getBucketsin interfaceHistogram- Returns:
- the histogram buckets
-
mergeBars
-
flatten
-
getQuantileBounds
public double[] getQuantileBounds(double quantile) Description copied from interface:HistogramReturns the bounds[minimum, maximum)on the given quantile.- Specified by:
getQuantileBoundsin interfaceHistogram- Parameters:
quantile- desired quantile- Returns:
- the quantile bounds
-
evaluateQuantileFromMax
private double[] evaluateQuantileFromMax(double quantile) -
evaluateQuantileFromMin
private double[] evaluateQuantileFromMin(double quantile) -
size
public long size() -
event
public void event(double value, long time) -
expire
public void expire(long time)
-