Interface Histogram
- All Known Implementing Classes:
BarSplittingBiasedHistogram,StripedHistogram
public interface Histogram
A histogram supporting double values
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidevent(double value, long time) voidexpire(long time) Returns the histograms bucketsdefault doubleThe maximum value.default doubleThe minimum value.double[]getQuantileBounds(double quantile) Returns the bounds[minimum, maximum)on the given quantile.longsize()
-
Method Details
-
getBuckets
List<Histogram.Bucket> getBuckets()Returns the histograms buckets- Returns:
- the histogram buckets
-
getMinimum
default double getMinimum()The minimum value.This is equal to the inclusive lower bound of the zeroth (0.0) quantile.
- Returns:
- the minimum value
-
getMaximum
default double getMaximum()The maximum value.This is equal to highest double value strictly less than the exclusive upper bound of the last (1.0) quantile.
- Returns:
- the maximum value
-
getQuantileBounds
Returns the bounds[minimum, maximum)on the given quantile.- Parameters:
quantile- desired quantile- Returns:
- the quantile bounds
- Throws:
IllegalArgumentException- ifquantileif outside the range [0.0..1.0]
-
size
long size()- Returns:
- the number of elements in the histogram
-
event
void event(double value, long time) -
expire
void expire(long time)
-