public class FixedCumulativeBucketFunction<T> extends java.lang.Object implements CumulativeBucketFunction<T>
| Constructor and Description |
|---|
FixedCumulativeBucketFunction(java.util.function.DoubleFunction<? extends T> f,
java.util.Set<T> buckets,
java.util.Comparator<? super T> comp) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Comparator<? super T> |
bucketComparator() |
T |
bucketFloor(double d) |
java.util.Set<T> |
buckets() |
public T bucketFloor(double d)
bucketFloor in interface CumulativeBucketFunction<T>d and strictly greater
than the last bucket that should NOT be incremented.public java.util.Set<T> buckets()
buckets in interface CumulativeBucketFunction<T>public java.util.Comparator<? super T> bucketComparator()
bucketComparator in interface CumulativeBucketFunction<T>