{"id":16828613,"url":"https://github.com/gowebprod/psqr","last_synced_at":"2025-10-04T18:48:08.198Z","repository":{"id":138562339,"uuid":"195991459","full_name":"GoWebProd/psqr","owner":"GoWebProd","description":null,"archived":false,"fork":false,"pushed_at":"2020-06-05T15:34:58.000Z","size":4,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-14T15:58:30.057Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GoWebProd.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2019-07-09T11:01:03.000Z","updated_at":"2021-05-02T21:16:32.000Z","dependencies_parsed_at":"2023-03-15T19:30:44.264Z","dependency_job_id":null,"html_url":"https://github.com/GoWebProd/psqr","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/GoWebProd/psqr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoWebProd%2Fpsqr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoWebProd%2Fpsqr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoWebProd%2Fpsqr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoWebProd%2Fpsqr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GoWebProd","download_url":"https://codeload.github.com/GoWebProd/psqr/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoWebProd%2Fpsqr/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278358473,"owners_count":25973946,"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","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-10-13T11:27:35.701Z","updated_at":"2025-10-04T18:48:08.090Z","avatar_url":"https://github.com/GoWebProd.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# psqr\nGo implementation of [The P-Square Algorithm for Dynamic Calculation of Quantiles and Histograms Without Storing Observations][1].\n\n\u003e The algorithm is proposed for dynamic calculation of [..] quantiles. The estimates are produced dynamically as the observations are generated. The observations are not stored, therefore, the algorithm has a very small and fixed storage requirement regardless of the number of observations.\n\n[1]: http://www.cs.wustl.edu/~jain/papers/ftp/psqr.pdf\n\n## Usage example\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\n\t\"github.com/GoWebProd/psqr\"\n)\n\nfunc main() {\n\tpp := psqr.NewPSQuantile(0.5, 0.9, 0.99, 0.999)\n\n\tpp.Append(0.013163238)\n\tpp.Append(0.711542201)\n\tpp.Append(-2.131796046)\n\tpp.Append(0.244640008)\n\tpp.Append(-0.211374733)\n\tpp.Append(4.493872061)\n\n\tfmt.Println(\"0.5 =\", pp.Quantile(0.5))\n\tfmt.Println(\"0.9 =\", pp.Quantile(0.9))\n\tfmt.Println(\"0.99 =\", pp.Quantile(0.99))\n\tfmt.Println(\"0.999 =\", pp.Quantile(0.999))\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgowebprod%2Fpsqr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgowebprod%2Fpsqr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgowebprod%2Fpsqr/lists"}