Infuse-IoT SDK API 0.0.1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
statistics.h File Reference

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.
 

Detailed Description

Infuse-IoT statistics helpers.

Author
Jordan Yates jorda.nosp@m.n@em.nosp@m.beint.nosp@m..com

SPDX-License-Identifier: FSL-1.1-ALv2