Buckets is a view into the backing array.
Offset is the bucket index of the smallest entry in the counts array
At returns the count of the bucket at a position in the logical array of counts.
Clone returns a deep copy of Buckets
An array of counts, where count[i] carries the count of the bucket at index (offset+i). count[i] is the count of values greater than base^(offset+i) and less than or equal to base^(offset+i+1).
The logical counts based on the backing array
decrementBucket decrements the backing array index by decrement
if decrement is greater than the current value, it's set to 0.
downscale first rotates, then collapses 2**by
-to-1 buckets.
incrementBucket increments the backing array index by increment
trim removes leading and / or trailing zero buckets (which can occur after diffing two histos) and rotates the backing array so that the smallest non-zero index is in the 0th position of the backing array
Generated using TypeDoc
The term index refers to the number of the exponential histogram bucket used to determine its boundaries. The lower boundary of a bucket is determined by base ** index and the upper boundary of a bucket is determined by base ** (index + 1). index values are signed to account for values less than or equal to 1.
indexBase is the index of the 0th position in the backing array, i.e., backing[0] is the count in the bucket with index
indexBase
.indexStart is the smallest index value represented in the backing array.
indexEnd is the largest index value represented in the backing array.