{"id":13713778,"url":"https://github.com/influxdata/tdigest","last_synced_at":"2025-05-16T02:09:22.226Z","repository":{"id":54455587,"uuid":"120350979","full_name":"influxdata/tdigest","owner":"influxdata","description":"An implementation of Ted Dunning's t-digest in Go.","archived":false,"fork":false,"pushed_at":"2023-04-22T20:19:41.000Z","size":45,"stargazers_count":140,"open_issues_count":11,"forks_count":25,"subscribers_count":42,"default_branch":"master","last_synced_at":"2025-04-08T13:05:24.629Z","etag":null,"topics":["cdf","estimate","go","percentile","quantile","tdigest"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/influxdata.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-02-05T19:26:13.000Z","updated_at":"2024-12-14T08:16:48.000Z","dependencies_parsed_at":"2024-06-18T12:42:01.183Z","dependency_job_id":"4c33a77f-8fcf-4ecd-9143-8d1c08c1faaa","html_url":"https://github.com/influxdata/tdigest","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/influxdata%2Ftdigest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/influxdata%2Ftdigest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/influxdata%2Ftdigest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/influxdata%2Ftdigest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/influxdata","download_url":"https://codeload.github.com/influxdata/tdigest/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254453667,"owners_count":22073618,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cdf","estimate","go","percentile","quantile","tdigest"],"created_at":"2024-08-02T23:01:44.190Z","updated_at":"2025-05-16T02:09:22.207Z","avatar_url":"https://github.com/influxdata.png","language":"Go","funding_links":[],"categories":["Repositories"],"sub_categories":[],"readme":"# tdigest\n\nThis is an implementation of Ted Dunning's [t-digest](https://github.com/tdunning/t-digest/) in Go.\n\nThe implementation is based off [Derrick Burns' C++ implementation](https://github.com/derrickburns/tdigest).\n\n## Example\n\n```go\npackage main\n\nimport (\n\t\"log\"\n\n\t\"github.com/influxdata/tdigest\"\n)\n\nfunc main() {\n\ttd := tdigest.NewWithCompression(1000)\n\tfor _, x := range []float64{1, 2, 3, 4, 5, 5, 4, 3, 2, 1} {\n\t\ttd.Add(x, 1)\n\t}\n\n\t// Compute Quantiles\n\tlog.Println(\"50th\", td.Quantile(0.5))\n\tlog.Println(\"75th\", td.Quantile(0.75))\n\tlog.Println(\"90th\", td.Quantile(0.9))\n\tlog.Println(\"99th\", td.Quantile(0.99))\n\n\t// Compute CDFs\n\tlog.Println(\"CDF(1) = \", td.CDF(1))\n\tlog.Println(\"CDF(2) = \", td.CDF(2))\n\tlog.Println(\"CDF(3) = \", td.CDF(3))\n\tlog.Println(\"CDF(4) = \", td.CDF(4))\n\tlog.Println(\"CDF(5) = \", td.CDF(5))\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfluxdata%2Ftdigest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finfluxdata%2Ftdigest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfluxdata%2Ftdigest/lists"}