https://github.com/rici4kubicek/statistics
Implementation of simple statistics functionality for embedded systems.
https://github.com/rici4kubicek/statistics
embedded embedded-systems math max min statistics
Last synced: 4 months ago
JSON representation
Implementation of simple statistics functionality for embedded systems.
- Host: GitHub
- URL: https://github.com/rici4kubicek/statistics
- Owner: rici4kubicek
- License: mit
- Created: 2025-09-14T10:38:48.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-12-19T10:46:03.000Z (6 months ago)
- Last Synced: 2025-12-22T03:43:39.620Z (6 months ago)
- Topics: embedded, embedded-systems, math, max, min, statistics
- Language: C
- Homepage: https://rici4kubicek.github.io/statistics/
- Size: 5.21 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Statistics

[](https://results.pre-commit.ci/latest/github/rici4kubicek/statistics/main)
[](https://registry.platformio.org/libraries/rici4kubicek/Statistics)
A lightweight C library for collecting fixed-size samples and computing basic
statistics (mean, min, max, variance, and standard deviation) for selected
scalar types. The documentation is generated with Doxygen and Sphinx (Breathe).
## Key features
- minimal dependencies, small API surface
- ring buffer with an indicator of "enough" samples collected
- type-specific functions generated based on configuration
- **no floating-point operations for integer types** - optimized for embedded CPUs without FPU (e.g., STM32F0, Cortex-M0)
- fixed-point arithmetic for integer types (mean, variance, stdev scaled by 1000)
- native float support for float data types