Class Histograms
- java.lang.Object
-
- com.pervasivecode.utils.stats.histogram.Histograms
-
public class Histograms extends Object
Utility methods for working with Histograms.
-
-
Constructor Summary
Constructors Constructor Description Histograms()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T,V> Histogram<V>
transformValues(Histogram<T> input, Function<T,V> transformation)
Transform a histogram's upper bound values using a Function.
-
-
-
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 thetransformation
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
-
-