Class Histograms


  • public class Histograms
    extends Object
    Utility methods for working with Histograms.
    • Constructor Detail

      • Histograms

        public Histograms()
    • Method Detail

      • transformValues

        public static <T,V> Histogram<V> transformValues​(Histogram<T> input,
                                                         Function<T,V> transformation)
        Transform a histogram's upper bound values using a Function.
        Type Parameters:
        T - The type of value counted by the input Histogram.
        V - The type of value emitted by the transformation Function.
        Parameters:
        input - The histogram to transform.
        transformation - A function that will transform one upper bound value.
        Returns:
        A Histogram wrapping the input histogram, whose bucketUpperBound values are the transformed version of the input histogram's bucketUpperBound values.
        See Also:
        BucketingSystem