caio.co/de/go-tdigest

Update more examples using the old New() api

Id
32ef7a6f9d76f7d9343ff5f8ed7d0b6450c5f71c
Author
Caio
Commit time
2017-11-29T08:27:04+01:00

Modified README.md

@@ -65,7 +65,7
```go
// Construct a digest with compression=200 and its own
// (thread-unsafe) RNG seeded with 0xCA10:
-digest := tdigest.New(
+digest, _ := tdigest.New(
tdigest.Compression(200),
tdigest.LocalRandomNumberGenerator(0xCA10),
)

Modified tdigest.go

@@ -8,7 +8,7
// ElasticSearch), performance metrics for distributed systems, etc.
//
// After you create (and configure, if desired) the digest:
-// digest := tdigest.New(tdigest.Compression(100))
+// digest, err := tdigest.New(tdigest.Compression(100))
//
// You can then use it for registering measurements:
// digest.Add(number)