Microcontroller-friendly C implementation of Recursive Least Squares (RLS) for running gradient analysis, including linear, cubic, and quadratic trends, optimized for real-time trend and peak ...