Skip to content

Instantly share code, notes, and snippets.

@spaceMan00
spaceMan00 / moving_average.c
Last active June 22, 2022 09:10
A simple moving average implementation in C using a struct object
#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
typedef struct moving_average
{
float *buffer;
int length;
float sum;