public class CumulativeHistogram<T> extends java.lang.Object implements Histogram<T>
| Modifier and Type | Field and Description |
|---|---|
protected CumulativeBucketFunction<T> |
f |
| Constructor and Description |
|---|
CumulativeHistogram(CumulativeBucketFunction<T> f) |
| Modifier and Type | Method and Description |
|---|---|
static TimeScaleCumulativeHistogram |
buckets(CumulativeBucketFunction<java.lang.Double> bucketFunction,
java.util.concurrent.TimeUnit timeScale) |
static <T> CumulativeHistogram<T> |
buckets(CumulativeBucketFunction<T> bucketFunction) |
static CumulativeBucketFunction<java.lang.Double> |
exponential(double start,
double exp,
int count) |
java.util.Collection<Bucket<T>> |
getBuckets() |
static CumulativeBucketFunction<java.lang.Double> |
linear(double start,
double width,
int count) |
void |
observe(double value)
Add a sample
|
protected final CumulativeBucketFunction<T> f
public CumulativeHistogram(CumulativeBucketFunction<T> f)
public void observe(double value)
Histogrampublic java.util.Collection<Bucket<T>> getBuckets()
getBuckets in interface Histogram<T>public static <T> CumulativeHistogram<T> buckets(CumulativeBucketFunction<T> bucketFunction)
public static TimeScaleCumulativeHistogram buckets(CumulativeBucketFunction<java.lang.Double> bucketFunction, java.util.concurrent.TimeUnit timeScale)
public static CumulativeBucketFunction<java.lang.Double> exponential(double start, double exp, int count)
public static CumulativeBucketFunction<java.lang.Double> linear(double start, double width, int count)