caio.co/de/go-tdigest

Migrate to Go Modules

Id
ec13d16c752b0207dfdb5326486d96996d0ea627
Author
Caio
Commit time
2022-08-28T09:16:47+02:00

Modified README.md

@@ -16,10 +16,10

## Installation

-Our releases are tagged and signed following the [Semantic Versioning][semver]
-scheme.
+This package uses go modules. Our releases are tagged and signed following
+the [Semantic Versioning][semver] scheme.

- go get github.com/caio/go-tdigest
+ go get github.com/caio/go-tdigest/v3


[semver]: http://semver.org/
@@ -33,7 +33,7
"fmt"
"math/rand"

- "github.com/caio/go-tdigest"
+ "github.com/caio/go-tdigest/v3"
)

func main() {
@@ -63,18 +63,6
tdigest.LocalRandomNumberGenerator(0xCA10),
)
```
-
-## Porting Existing Code to the v2 API
-
-It's very easy to migrate to the new API:
-
-- Replace `tdigest.New(100)` with `tdigest.New()`
-- Replace `tdigest.New(number)` with `tdigest.New(tdigest.Compression(number))`
-- Replace `Add(x,1)` with `Add(x)`
-- Replace `Add(x, weight)` with `AddWeighted(x, weight)`
-- Remove any use of `tdigest.Len()` (or [open an issue][issues])
-
-[issues]: https://github.com/caio/go-tdigest/issues/new

## References

Created go.mod

@@ -1,0 +1,8
+module github.com/caio/go-tdigest/v3
+
+go 1.18
+
+require (
+ github.com/leesper/go_rng v0.0.0-20190531154944-a612b043e353
+ gonum.org/v1/gonum v0.11.0
+)

Created go.sum

@@ -1,0 +1,5
+github.com/leesper/go_rng v0.0.0-20190531154944-a612b043e353 h1:X/79QL0b4YJVO5+OsPH9rF2u428CIrGL/jLmPsoOQQ4=
+github.com/leesper/go_rng v0.0.0-20190531154944-a612b043e353/go.mod h1:N0SVk0uhy+E1PZ3C9ctsPRlvOPAFPkCNlcPBDkt0N3U=
+golang.org/x/exp v0.0.0-20191002040644-a1355ae1e2c3 h1:n9HxLrNxWWtEb1cA950nuEEj3QnKbtsCJ6KjcgisNUs=
+gonum.org/v1/gonum v0.11.0 h1:f1IJhK4Km5tBJmaiJXtk/PkL4cdVX6J+tGiM187uT5E=
+gonum.org/v1/gonum v0.11.0/go.mod h1:fSG4YDCxxUZQJ7rKsQrj0gMOg00Il0Z96/qMA4bVQhA=