public class TimeScaleCumulativeHistogram extends CumulativeHistogram<java.lang.Double>
CumulativeHistogram.observe(double)
are expected to be made with a measure of time whose
scale matches this histogram's time scale.f
Constructor and Description |
---|
TimeScaleCumulativeHistogram(CumulativeBucketFunction<java.lang.Double> f,
java.util.concurrent.TimeUnit timeScale) |
Modifier and Type | Method and Description |
---|---|
TimeScaleCumulativeHistogram |
shiftScale(java.util.concurrent.TimeUnit targetUnit) |
buckets, buckets, exponential, getBuckets, linear, observe
public TimeScaleCumulativeHistogram(CumulativeBucketFunction<java.lang.Double> f, java.util.concurrent.TimeUnit timeScale)
public TimeScaleCumulativeHistogram shiftScale(java.util.concurrent.TimeUnit targetUnit)
targetUnit
- The time scale of the new cumulative histogram