You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: libs/exponential-histogram/src/main/java/org/elasticsearch/exponentialhistogram/ExponentialHistogramUtils.java
+31-13Lines changed: 31 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -25,28 +25,46 @@ public class ExponentialHistogramUtils {
25
25
26
26
/**
27
27
* Estimates the sum of all values of a histogram just based on the populated buckets.
28
+
* Will never return NaN, but might return +/-Infinity if the histogram is too big.
28
29
*
29
30
* @param negativeBuckets the negative buckets of the histogram
30
31
* @param positiveBuckets the positive buckets of the histogram
31
-
* @return the estimated sum of all values in the histogram, guaranteed to be zero if there are no buckets
32
+
* @return the estimated sum of all values in the histogram, guaranteed to be zero if there are no buckets.
Copy file name to clipboardExpand all lines: libs/exponential-histogram/src/test/java/org/elasticsearch/exponentialhistogram/ExponentialHistogramUtilsTests.java
Copy file name to clipboardExpand all lines: x-pack/plugin/mapper-exponential-histogram/src/test/java/org/elasticsearch/xpack/exponentialhistogram/ExponentialHistogramFieldMapperTests.java
0 commit comments