ddsketch/agent/
bucket.rs

1//! Histogram bucket representation for interpolation.
2
3/// A histogram bucket.
4///
5/// This type can be used to represent a classic histogram bucket, such as those defined by Prometheus or OpenTelemetry,
6/// in a way that is then able to be inserted into the DDSketch via linear interpolation.
7pub struct Bucket {
8    /// The upper limit (inclusive) of values in the bucket.
9    pub upper_limit: f64,
10
11    /// The number of values in the bucket.
12    pub count: u64,
13}