|
Infuse-IoT SDK API 0.0.1
A Scalable Open Source RTOS
|
Infuse-IoT statistics helpers. More...
#include <stdint.h>#include <string.h>Go to the source code of this file.
Data Structures | |
| struct | statistics_state |
Functions | |
| static void | statistics_reset (struct statistics_state *state) |
| Reset statistics object. | |
| void | statistics_update (struct statistics_state *state, int32_t value) |
| Update the statistics object with a new sample. | |
| static float | statistics_mean (const struct statistics_state *state) |
| Compute the mean of the statistics object. | |
| static float | statistics_variance (const struct statistics_state *state) |
| Compute the variance of the statistics object. | |
| static int32_t | statistics_mean_rough (const struct statistics_state *state) |
| Compute the rough mean of the statistics object. | |
| static uint64_t | statistics_variance_rough (const struct statistics_state *state) |
| Compute the rough variance of the statistics object. | |
Infuse-IoT statistics helpers.
SPDX-License-Identifier: FSL-1.1-ALv2