If TRUE, consecutive buckets in the left tail of the
histogram without any elements will
be removed from the returned histogram.
right
If TRUE, consecutive buckets in the right tail of the
histogram without any elements will
be removed from the returned histogram.
Details
Many data analysis pipelines write out histogram protocol buffers with
thousands of buckets so as to be applicable in a wide range of
contexts. This function provides a way to transform the histogram into
one with fewer buckets by removing sparseness in the tails.