Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
automatically rescale exponential histograms
add desired_scale configuration. You can set something like `8` to try and get fine-grained resolution when your distributions have close values. When your distributions span a wide range, they will automatically degrade to the finest resolution that can express them in exponential histogram format. The ranges are offset-aware, so if you limit to 160 buckets, you will still be able to have relatively fine-grained resolution of large numbers assuming those large numbers are relatively close together. Scaling down to coarser scales can happen repeatedly or all at once. The scale workflow is modeled as a single step in-place rescale, followed by a reingest of the new value. If the new value still doesn't fit, it reingests again. Thus, the algorithm recursively hadles multi-step scaling. Performance is unchanged within the granularity I can measure with criterion. This should just increase fidelity of histograms for normally distributed data, like most metrics are expected to approximately be.
- Loading branch information