// Buckets returns a list of histogram buckets.
Buckets returns a list of histogram buckets.
// Buckets returns a list of histogram buckets .
func (h *PCPHistogram) Buckets() []*HistogramBucket {
	b := h.h.Distribution()
	buckets := make([]*HistogramBucket, len(b))
	for i := 0; i < len(b); i++ {
		buckets[i] = &HistogramBucket{b[i].From, b[i].To, b[i].Count}
	}
	return buckets
}
func ( h * PCPHistogram ) Buckets ( ) [ ] * HistogramBucket { b := h . h . Distribution ( ) buckets := make ( [ ] * HistogramBucket , len ( b ) ) for i := 0 ; i < len ( b ) ; i ++ { buckets [ i ] = & HistogramBucket { b [ i ] . From , b [ i ] . To , b [ i ] . Count } } return buckets }
Buckets returns a list of histogram buckets.
Buckets returns a list of histogram buckets .