toSparseHistogram
Project a SketchResult into a SparseHistogramResult by expanding its bin indices to bucket boundaries.
Bucket the retained sample into binCount equal-width bins between min and max.
Convert centroids to a sparse histogram with bins centered on each centroid.