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