|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.javasimon.callback.quantiles.Buckets
org.javasimon.callback.quantiles.ExponentialBuckets
public class ExponentialBuckets
Exponentially organized Buckets.
| Field Summary | |
|---|---|
private double |
logMin
Logarithm of the lower bound. |
private double |
power
Power between buckets. |
| Fields inherited from class org.javasimon.callback.quantiles.Buckets |
|---|
bucketNb, buckets, max, min |
| Constructor Summary | |
|---|---|
ExponentialBuckets(long min,
long max,
int bucketNb)
Constructor. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.javasimon.callback.quantiles.Buckets |
|---|
addValue, addValues, clear, getBucketNb, getBuckets, getLogMessage, getLogTemplate, getMax, getMedian, getMin, getQuantile, getQuantiles, getQuartiles, log, sample, setLogTemplate, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private final double power
private final double logMin
| Constructor Detail |
|---|
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 max| Method Detail |
|---|
protected Bucket getBucketForValue(long value)
getBucketForValue in class Bucketsvalue - Value
protected double estimateQuantile(Bucket bucket,
double expectedCount,
double lastCount)
Bucket.min and Bucket.maxBucket.count
estimateQuantile in class Bucketsbucket - Current bucket containing the quantileexpectedCount - Searched valuelastCount - Value of the bucket lower bound
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||