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 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 Instance Methods Concrete Methods Modifier and Type Method Description voidevent(double value, long time)voidexpire(long time)List<Histogram.Bucket>getBuckets()Returns the histograms bucketsdouble[]getQuantileBounds(double quantile)Returns the bounds[minimum, maximum)on the given quantile.longsize()-
Methods inherited from class org.terracotta.statistics.derived.histogram.Striped
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 List<Histogram.Bucket> getBuckets()
Description copied from interface:HistogramReturns the histograms buckets- Specified by:
getBucketsin interfaceHistogram- Returns:
- the histogram buckets
-
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
-
size
public long size()
-
-