package
0.0.0-20240716132614-1643519e6f91
Repository: https://github.com/triggermail/luci-go.git
Documentation: pkg.go.dev
# Functions
FixedWidthBucketer returns a Bucketer that uses numFiniteBuckets+2 buckets: bucket[0] covers (-Inf...0) bucket[i] covers [width*(i-1)...width*i) for i > 0 and i <= numFiniteBuckets bucket[numFiniteBuckets+1] covers [width*numFiniteBuckets...+Inf) The width must be greater than 0, and the number of finite buckets must be greater than 0.
GeometricBucketer returns a Bucketer that uses numFiniteBuckets+2 buckets: bucket[0] covers (−Inf, 1) bucket[i] covers [growthFactor^(i−1), growthFactor^i) for i > 0 and i <= numFiniteBuckets bucket[numFiniteBuckets+1] covers [growthFactor^(numFiniteBuckets−1), +Inf)
growthFactor must be positive, and the number of finite buckets must be greater than 0.
New creates a new distribution using the given bucketer.
NewBucketer creates a bucketer from custom parameters.
# Variables
DefaultBucketer is a bucketer with sensible bucket sizes.
# Structs
A Bucketer maps samples into discrete buckets.
A Distribution holds a statistical summary of a collection of floating-point values.