{"id":13802359,"url":"https://github.com/rcolistete/MicroPython_Statistics","last_synced_at":"2025-05-13T13:30:44.175Z","repository":{"id":81135469,"uuid":"153680759","full_name":"rcolistete/MicroPython_Statistics","owner":"rcolistete","description":"Statistics module for MicroPython","archived":false,"fork":false,"pushed_at":"2018-10-26T16:29:52.000Z","size":16,"stargazers_count":13,"open_issues_count":0,"forks_count":8,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-22T12:35:16.428Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/rcolistete.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}},"created_at":"2018-10-18T20:04:23.000Z","updated_at":"2024-02-10T20:12:06.000Z","dependencies_parsed_at":"2023-06-06T16:00:33.020Z","dependency_job_id":null,"html_url":"https://github.com/rcolistete/MicroPython_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/rcolistete%2FMicroPython_Statistics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rcolistete%2FMicroPython_Statistics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rcolistete%2FMicroPython_Statistics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rcolistete%2FMicroPython_Statistics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rcolistete","download_url":"https://codeload.github.com/rcolistete/MicroPython_Statistics/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225218022,"owners_count":17439712,"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-08-04T00:01:42.741Z","updated_at":"2024-11-18T17:31:18.843Z","avatar_url":"https://github.com/rcolistete.png","language":"Python","readme":"# MicroPython Statistics module\n\nStatistics module for MicroPython, based on statistics module for Python 3 (\u003e= 3.4) :\n- [documentation of Python 3 statistics module](https://docs.python.org/3/library/statistics.html)\n- [PEP 0450 about Python 3 statistics module](https://www.python.org/dev/peps/pep-0450/)\n- [source code of Python 3 statistics module](https://github.com/python/cpython/blob/3.7/Lib/statistics.py)\n\nAll Python 3 statistics functions are implemented on MicroPython version, with the same syntax :\n\n| Function | Description |\n| -------- | ----------- |\n| mean()   | Arithmetic mean (“average”) of data |\n| harmonic_mean()\t| Harmonic mean of data |\n| median() | Median (middle value) of data |\n| median_low()\t| Low median of data |\n| median_high()\t| High median of data |\n| median_grouped()\t| Median, or 50th percentile, of grouped data |\n| mode() |\tMode (most common value) of discrete data |\n| pstdev() | Population standard deviation of data |\n| pvariance()\t| Population variance of data |\n| stdev()\t| Sample standard deviation of data |\n| variance() | Sample variance of data |\n\nThe MicroPython version of statistics module has some limitations :\n- less precision on mean due to the lack of fraction numbers and 'float.as_integer_ratio()' on MicroPython;\n- Fraction (from fraction module) and Decimal (from decimal module) are not accepted numbers because the fraction and decimal modules are not implemented on MicroPython;\n- no error messages;\n- no documentation and examples for each function inside the module.\n\nMany MicroPython modules are optimised to save RAM memory because many microcontrollers only have tens of KBytes. \n","funding_links":[],"categories":["Libraries"],"sub_categories":["Mathematics"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frcolistete%2FMicroPython_Statistics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frcolistete%2FMicroPython_Statistics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frcolistete%2FMicroPython_Statistics/lists"}