Class StripedHistogram
- java.lang.Object
-
- org.terracotta.statistics.derived.histogram.Striped<BarSplittingBiasedHistogram>
-
- org.terracotta.statistics.derived.histogram.StripedHistogram
-
- All Implemented Interfaces:
Histogram
public class StripedHistogram extends Striped<BarSplittingBiasedHistogram> implements 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
Constructors Constructor Description StripedHistogram(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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private double[]evaluateQuantileFromMax(double quantile)private double[]evaluateQuantileFromMin(double quantile)voidevent(double value, long time)voidexpire(long time)private static java.util.List<double[]>flatten(double[] a, double[] b)java.util.List<Histogram.Bucket>getBuckets()Returns the histograms bucketsdouble[]getQuantileBounds(double quantile)Returns the bounds[minimum, maximum)on the given quantile.(package private) static voidmergeBars(java.util.List<double[]> bars)longsize()-
Methods inherited from class org.terracotta.statistics.derived.histogram.Striped
advanceProbe, process, stream, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.terracotta.statistics.derived.histogram.Histogram
getMaximum, getMinimum
-
-
-
-
Constructor Detail
-
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 Detail
-
getBuckets
public java.util.List<Histogram.Bucket> getBuckets()
Description copied from interface:HistogramReturns the histograms buckets- Specified by:
getBucketsin interfaceHistogram- Returns:
- the histogram buckets
-
mergeBars
static void mergeBars(java.util.List<double[]> bars)
-
flatten
private static java.util.List<double[]> flatten(double[] a, double[] b)
-
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()
-
-