Releases: spenczar/tdigest
v2.2.0: Go modules
v2.1.0: Handle NaNs, Infs, and fix bug #6.
This release adds two changes. First, it fixes an important bug discovered in issue #6. The fix is in #7, and has to do with the logic around adding centroids when a TDigest doesn't have many values. Previous versions could get into incorrect states which would have resulted in quantile values which decreased as you went up, which is very wrong.
In addition, this release includes #8, which defines the behavior of TDigests when Inf
and NaN
values are added. Those values will now be ignored; they similarly would have caused erratic responses from the Quantile function in previous versions.
v2.0.0: New API, added serialization
Version 2.0.0 of tdigest changes its API. Instead of exporting an interface-typed value, it now provides a struct. This should make it easier to add features without breaking compatibility; changing the interface could have broken things for users because it would mean their own code no longer fulfilled the interface.
In addition, version 2 adds binary marshaling and unmarshaling support for tdigests. This lets users serialize their digests, ship them over the network, and aggregate them together.