Log for serialization_test.go
-
Fix: Init rng in TDigest.FromBytes by Nova 5 months ago
-
New lint fixes by Caio 8 months ago
-
merge upstream by Ian Wilkes 6 years ago
-
Merge remote-tracking branch 'upstream/master' into ian.uint64 by Ian Wilkes 6 years ago
-
Make FromBytes accept options for constructing the digest by Caio 7 years ago
-
Fix nil rng by Vladimir Mihailenco 7 years ago
-
Change tdigest.FromBytes to decode directly into summary by Vladimir Mihailenco 7 years ago
-
Add TDigest.FromBytes and cleanup RNG interface by Vladimir Mihailenco 7 years ago
-
add optimized serialization methods by Ian Wilkes 7 years ago
-
Use uint64 instead of uint32 to avoid overflow issues by Eben Freeman 7 years ago
-
Introduce TDigest.Count() 💬 by Caio 8 years ago
Expose the count of samples publicly so that users can more easily deicde what to do when the digest has too many samples.
-
Make Add take only one parameter, introduce AddWeighted 💬 by Caio 8 years ago
This patch renames the previous Add(float64,uint32) to AddWeighted and introduces a method Add(float64) which is simply an alias to AddWeighted(float64,1).
-
Make New() return an error instead of panic()ing 💬 by Caio 8 years ago
This patch now makes New() return a (*TDigest,error) tuple, which makes deserialization safe without having to trap for panic()s. The only remaining panic() is for bad input in a public function (`Quantile(float64)`). I'm keen on keeping it.
-
Introduce a parameter-less New() 💬 by Caio 8 years ago
Now `tdigest.New()` gives a sane ready-to-use-in-most-cases digest. Configuration should be done via self referential functions. Ex: // create a digest with compression of 200 tdigest.New(tdigest.Compression(200)) Notice that New() can still panic, which means that deserialization if still more dangerous than it should. -
gometalinter: Error checking on tests 💬 by Caio 9 years ago
With this patch we now explicitly ignore most errors coming from Add() (as there are specialized tests for it and the consistency checks cover the error scenario) and introduces a check for potential Merge() and Compress() errors. Not really happy with the mass ignore, but I do like the `errcheck` linter, so there's that.
-
Move serialization tests into serialization_test.go by Caio 10 years ago