public class ExponentialBuckets extends Buckets
Buckets
.Constructor and Description |
---|
ExponentialBuckets(long min,
long max,
int bucketNb)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected double |
estimateQuantile(Bucket bucket,
double expectedCount,
double lastCount)
Interpolate quantile located in given Bucket using linear regression.
|
protected Bucket |
getBucketForValue(long value)
Get the bucket containing the given value.
|
addValue, addValues, clear, getBucketNb, getBuckets, getLogMessage, getLogTemplate, getMax, getMedian, getMin, getQuantile, getQuantiles, getQuartiles, log, sample, setLogTemplate, toString
public ExponentialBuckets(long min, long max, int bucketNb)
min
- Duration min (lower bound of all buckets)max
- Duration max (upper bound of all buckets)bucketNb
- Number of buckets between min and maxprotected Bucket getBucketForValue(long value)
getBucketForValue
in class Buckets
value
- Valueprotected double estimateQuantile(Bucket bucket, double expectedCount, double lastCount)
Bucket.min
and Bucket.max
Bucket.count
estimateQuantile
in class Buckets
bucket
- Current bucket containing the quantileexpectedCount
- Searched valuelastCount
- Value of the bucket lower boundCopyright © 2019. All rights reserved.