{"id":18418631,"url":"https://github.com/bsm/tdigest","last_synced_at":"2025-04-13T05:54:52.887Z","repository":{"id":66301259,"uuid":"312635309","full_name":"bsm/tdigest","owner":"bsm","description":"Implementation of Ted Dunning's t-digest in Go","archived":false,"fork":false,"pushed_at":"2020-11-13T18:27:51.000Z","size":20,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-13T05:54:50.593Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/bsm.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":"2020-11-13T17:01:06.000Z","updated_at":"2021-03-05T07:53:30.000Z","dependencies_parsed_at":"2023-02-21T02:46:10.291Z","dependency_job_id":null,"html_url":"https://github.com/bsm/tdigest","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bsm%2Ftdigest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bsm%2Ftdigest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bsm%2Ftdigest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bsm%2Ftdigest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bsm","download_url":"https://codeload.github.com/bsm/tdigest/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248670502,"owners_count":21142901,"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":[],"created_at":"2024-11-06T04:14:11.040Z","updated_at":"2025-04-13T05:54:52.863Z","avatar_url":"https://github.com/bsm.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tdigest\n\n[![Build Status](https://travis-ci.org/bsm/tdigest.png?branch=master)](https://travis-ci.org/bsm/tdigest)\n[![GoDoc](https://godoc.org/github.com/bsm/tdigest?status.png)](http://godoc.org/github.com/bsm/tdigest)\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n\nThis is an implementation of Ted Dunning's [t-digest](https://github.com/tdunning/t-digest/) in Go based\non [influxdata/tdigest](https://github.com/influxdata/tdigest).\n\n## Example:\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/bsm/tdigest\"\n)\n\nfunc main() {\n\t// Create a new instance\n\tt := tdigest.New()\n\n\t// Add values\n\tfor _, x := range []float64{1, 2, 3, 4, 5, 5, 4, 3, 2, 1} {\n\t\tt.Add(x, 1.0)\n\t}\n\n\t// Process and output\n\tfmt.Printf(\"MIN    : %.1f\\n\", t.Min())\n\tfmt.Printf(\"MAX    : %.1f\\n\", t.Max())\n\tfmt.Printf(\"Q.50   : %.1f\\n\", t.Quantile(0.5))\n\tfmt.Printf(\"Q.95   : %.1f\\n\", t.Quantile(0.95))\n\tfmt.Printf(\"CDF(1) : %.1f\\n\", t.CDF(1))\n\tfmt.Printf(\"CDF(2) : %.1f\\n\", t.CDF(2))\n\tfmt.Printf(\"CDF(3) : %.1f\\n\", t.CDF(3))\n\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbsm%2Ftdigest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbsm%2Ftdigest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbsm%2Ftdigest/lists"}