Exponentially Weighted Moving Averages
include/math/ewma.h View source View on GitHubStructs
Section titled “Structs”struct ewma {
fx32_32_t alpha;
size_t saved;
fx32_32_t ewma;
}; Functions
Section titled “Functions”ewma_update
Section titled “ewma_update”fx32_32_t ewma_update(struct ewma *e, size_t new);