{"id":20563398,"url":"https://github.com/pilotak/movingaveragefloat","last_synced_at":"2026-04-22T04:02:09.661Z","repository":{"id":32971043,"uuid":"147843920","full_name":"pilotak/MovingAverageFloat","owner":"pilotak","description":"Arduino \u0026 Mbed Library for averaging float numbers","archived":false,"fork":false,"pushed_at":"2021-11-23T10:21:53.000Z","size":12,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-06T08:20:44.821Z","etag":null,"topics":["arduino","arduino-library","averaging-filter","filter","float","floating-point","mbed","mbed-os","moving-average"],"latest_commit_sha":null,"homepage":"","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/pilotak.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}},"created_at":"2018-09-07T15:45:27.000Z","updated_at":"2022-05-28T21:40:12.000Z","dependencies_parsed_at":"2022-08-07T19:15:24.968Z","dependency_job_id":null,"html_url":"https://github.com/pilotak/MovingAverageFloat","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/pilotak/MovingAverageFloat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pilotak%2FMovingAverageFloat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pilotak%2FMovingAverageFloat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pilotak%2FMovingAverageFloat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pilotak%2FMovingAverageFloat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pilotak","download_url":"https://codeload.github.com/pilotak/MovingAverageFloat/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pilotak%2FMovingAverageFloat/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32120402,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-22T00:31:26.853Z","status":"online","status_checked_at":"2026-04-22T02:00:05.693Z","response_time":58,"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":["arduino","arduino-library","averaging-filter","filter","float","floating-point","mbed","mbed-os","moving-average"],"created_at":"2024-11-16T04:18:07.020Z","updated_at":"2026-04-22T04:02:09.623Z","avatar_url":"https://github.com/pilotak.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Moving average filter for float numbers\n[![Build status](https://github.com/pilotak/MovingAverageFloat/workflows/build/badge.svg)](https://github.com/pilotak/MovingAverageFloat/actions)\n[![Framework Badge Arduino](https://img.shields.io/badge/framework-arduino-00979C.svg)](https://arduino.cc)\n[![Framework Badge mbed](https://img.shields.io/badge/framework-mbed-008fbe.svg)](https://os.mbed.com/)\n\n## Arduino example\nPlease see `examples` folder\n\n## Mbed example\n```cpp\n#include \"mbed.h\"\n#include \"MovingAverageFloat.h\"\n\n// Buffer will be 16 samples long, it will take 16 * sizeof(float) = 64 bytes of RAM\nMovingAverageFloat \u003c16\u003e filter;\n\nint main() {\n    printf(\"result: %.2f\\n\", filter.add(1.5)); // insert new number and get result\n    printf(\"result: %.2f\\n\", filter.add(2.5)); // insert new number and get result\n    printf(\"result: %.2f\\n\", filter.add(2.4)); // insert new number and get result\n    printf(\"result: %.2f\\n\", filter.get()); // get last result, without adding a newone\n\n    return 0;\n}\n```\n\n### Output\n\u003e result: 1.50\n\u003e \n\u003e result: 1.56\n\u003e \n\u003e result: 1.62\n\u003e \n\u003e result: 1.62\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpilotak%2Fmovingaveragefloat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpilotak%2Fmovingaveragefloat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpilotak%2Fmovingaveragefloat/lists"}