Maps a sample to a "bucket index" that it belongs in.
A "bucket index" is the consecutive integer index of each bucket, useful as a mathematical concept, even though the internal representation is stored and sent using the minimum value in each bucket.
The sample to map to a bucket index.
The bucket index for the sample.
Gets a snapshot of all contiguous values.
Caution This is a more specific implementation of snapshotValues
on functional
histograms. snapshotValues
cannot be used with those, due to buckets not being
precomputed.
All the current histogram values.
Updated values with anything missing replaced with a default value of 0.
Generated using TypeDoc
An interface for bucketing algorithms for histograms.
It's responsible to calculate the bucket a sample goes into. It can calculate buckets on-the-fly or pre-calculate buckets and re-use that when needed.