{"id":21928694,"url":"https://github.com/muellan/statistics","last_synced_at":"2026-03-08T13:33:22.397Z","repository":{"id":73309239,"uuid":"110270134","full_name":"muellan/statistics","owner":"muellan","description":"Header-only collection of statistics utilities for C++14","archived":false,"fork":false,"pushed_at":"2017-11-30T03:10:47.000Z","size":69,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-28T22:33:10.211Z","etag":null,"topics":["accumulator","cpp","cpp14","header-only","histogram","statistics"],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/muellan.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":"2017-11-10T16:47:33.000Z","updated_at":"2024-04-15T05:01:56.000Z","dependencies_parsed_at":"2023-04-13T01:25:10.390Z","dependency_job_id":null,"html_url":"https://github.com/muellan/statistics","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/muellan%2Fstatistics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muellan%2Fstatistics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muellan%2Fstatistics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muellan%2Fstatistics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/muellan","download_url":"https://codeload.github.com/muellan/statistics/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235843600,"owners_count":19054017,"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":["accumulator","cpp","cpp14","header-only","histogram","statistics"],"created_at":"2024-11-28T22:27:37.378Z","updated_at":"2025-10-09T17:32:08.537Z","avatar_url":"https://github.com/muellan.png","language":"C++","readme":"AM statistics\n==========\n\nHeader-only collection of statistics utilities for C++14.\n\n- [Interfaces](#interfaces)\n- [Requirements](#requirements)\n\n\n\n\n## Quick Overview\n\n\n\n### Histograms\n\n#### [uniform\\_histogram](#uniform-histogram)\nList of counters where the index of each counter is determined by mapping an input value to a range of bins of the same size.\n\n#### [nonuniform\\_histogram](#non-uniform-histogram)\nList of counters where the index of each counter is determined by mapping an input value to a range of bins of non-uniform size (specified by their lower bounds).\n\n#### [partial\\_sum\\_counter](#partial-sum-counter)\nList of counters with efficient partial sum (prefix sum) queries.\n\n\n\n### Accumulators\nAn accumulator provides running statistical analyses of a (growing) sample of values.\n\n - ```moments_accumulator```\n     - ```mean_accumulator```      (running mean)\n     - ```variance_accumulator```  (includes running mean)\n     - ```skewness_accumulator```  (includes running mean \u0026 variance)\n     - ```kurtosis_accumulator```  (includes running mean, variance \u0026 skewness)\n - ```comparative_accumulator```\n     - ```min_accumulator```\n     - ``` max_accumulator```\n - ```reversible_comparative_accumulator``` (supports undo/pop operation)\n     - ```reversible_min_accumulator```\n     - ```reversible_max_accumulator```\n - ```min_max_moments_accumulator```\n - ```reversible_min_max_moments_accumulator```\n\n\n#### Accumulator Interface\n\nAll accumulators have the following members:\n```cpp\nusing \n//reset accumulator\naccumulator::clear();\naccumulator::operator = (const argument_type\u0026);\n\n//add sample to statistics\naccumulator::push(const argument_type\u0026);\naccumulator::operator += (const argument_type\u0026);\n```\n\nReversible accumulators also have:\n```cpp\n//remove value from statistics\naccumulator::pop(const argument_type\u0026);\naccumulator::operator -= (const argument_type\u0026);\n```\n\n#### Accumulator Decorators\n - ```windowed\u003cAccumulator\u003e```  restricts statistics to the n latest samples\n - ```reversible\u003cAccumulator\u003e``` augments an accumulator with an undo history  \n - ```combined\u003cAccumulators...\u003e``` combines several accumulators into one\n \n#### Accumulator Adapters\n - ```histogram_accumulator``` augments a histogram with an accumulator interface \n \n\n\n\n## Requirements\n  - requires C++14 conforming compiler\n  - tested with g++ 5.3.1\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuellan%2Fstatistics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmuellan%2Fstatistics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuellan%2Fstatistics/lists"}