Alex Amato created BEAM-12103:
---------------------------------

             Summary: HistogramCell needs a few touches to make it match the 
spec :)
                 Key: BEAM-12103
                 URL: https://issues.apache.org/jira/browse/BEAM-12103
             Project: Beam
          Issue Type: Test
          Components: java-fn-execution
            Reporter: Alex Amato


See spec here:

 __ [_https://s.apache.org/beam-histogram-metrics_]

A few pieces I want to highlight:

  *//   LINEAR(start, width, num_buckets):*

  *//       Bi = start + width * i*

  *//       e.g. LINEAR(5, 15, 6) defines:*

  *//           [-INF, 5), [5, 20), [20, 35), [35, 50), [50, 65), [65, +INF], 
...*

Current Java implementation:

LinearBuckets.of(5, 15, 6) will defined buckets like this (6 buckets excluding 
the infinite ranges)

[-INF, 5), [5, 20), [20, 35), [35, 50), [50, 65), [65, 80), [80, 95), [95, 
+INF], ...

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to