{"id":19199547,"url":"https://github.com/subconsciouscompute/simpleaccumulator","last_synced_at":"2025-10-08T20:19:58.257Z","repository":{"id":37822005,"uuid":"503703021","full_name":"SubconsciousCompute/SimpleAccumulator","owner":"SubconsciousCompute","description":"A simple accumulator inspired from boost::accumulator","archived":false,"fork":false,"pushed_at":"2024-02-12T09:44:55.000Z","size":59,"stargazers_count":5,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-08T20:19:57.933Z","etag":null,"topics":["accumulator","online-algorithms","rust","statistics"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/SubconsciousCompute.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2022-06-15T09:40:21.000Z","updated_at":"2023-05-12T04:12:06.000Z","dependencies_parsed_at":"2024-01-07T13:39:59.035Z","dependency_job_id":"353f2033-0eb4-406d-a281-2cdde421a55d","html_url":"https://github.com/SubconsciousCompute/SimpleAccumulator","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/SubconsciousCompute/SimpleAccumulator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SubconsciousCompute%2FSimpleAccumulator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SubconsciousCompute%2FSimpleAccumulator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SubconsciousCompute%2FSimpleAccumulator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SubconsciousCompute%2FSimpleAccumulator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SubconsciousCompute","download_url":"https://codeload.github.com/SubconsciousCompute/SimpleAccumulator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SubconsciousCompute%2FSimpleAccumulator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000662,"owners_count":26082817,"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-08T02:00:06.501Z","response_time":56,"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":["accumulator","online-algorithms","rust","statistics"],"created_at":"2024-11-09T12:27:47.638Z","updated_at":"2025-10-08T20:19:58.238Z","avatar_url":"https://github.com/SubconsciousCompute.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"#  SimpleAccumulator\n\n[![Crates.io](https://img.shields.io/crates/v/simple_accumulator)](https://crates.io/crates/simple_accumulator)\n[![docs.rs](https://img.shields.io/docsrs/simple_accumulator)](https://docs.rs/simple_accumulator/latest/simple_accumulator/struct.SimpleAccumulator.html)\n[![Crates.io](https://img.shields.io/crates/d/simple_accumulator)](https://docs.rs/simple_accumulator/latest/simple_accumulator/struct.SimpleAccumulator.html)\n\nThis crate is inspired by [Boost::Accumulator](\nhttps://www.boost.org/doc/libs/1_84_0/doc/html/accumulators.html) which supports\nincremental statistical computation (online algorithms). _This is a work in\nprogress but usable. Please write integration tests before using it in\nproduction._ \n\nRead\n[Documentation](https://docs.rs/simple_accumulator/latest/simple_accumulator/struct.SimpleAccumulator.html)\n\n# Notes\n\n- 2023-12-20: Version 0.6 is a major rewrite that fix many embarassing bugs. In\n  0.6+, we are relying on\n  [watermill](https://docs.rs/watermill/latest/watermill/#quickstart) crate for\n  underlying algorithms.\n\n# Usage: \n\n```rust\nuse simple_accumulator::SimpleAccumulator;\n\nfn main() {\n    let k = [1, 2, 3, 4];\n\n    // If second argument is `None` then accumulator stores all the data. \n    let mut x = SimpleAccumulator::new(\u0026k, Some(10));\n\n    println!(\"{:?}\", x);\n    \n    x.push(5);\n    println!(\"{:?}\", x);\n\n    print!(\"{}\", x.mean());\n    print!(\"{}\", x.median());\n    print!(\"{}\", x.variance());\n    print!(\"{}\", x.sum());\n    print!(\"{}\", x.kurtosis());\n    ...\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubconsciouscompute%2Fsimpleaccumulator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsubconsciouscompute%2Fsimpleaccumulator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubconsciouscompute%2Fsimpleaccumulator/lists"}