Class LinearBuckets (0.1.0)

LinearBuckets(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Describing buckets with constant width.

Attributes

NameDescription
num_finite_buckets int
The number of finite buckets. With the underflow and overflow buckets, the total number of buckets is num_finite_buckets + 2. See comments on bucket_options for details.
width float
The i'th linear bucket covers the interval [offset + (i-1) \* width, offset + i \* width) where i ranges from 1 to num_finite_buckets, inclusive. Must be strictly positive.
offset float
The i'th linear bucket covers the interval [offset + (i-1) \* width, offset + i \* width) where i ranges from 1 to num_finite_buckets, inclusive.