$$y = a_nx_n + a_{n-1}x_{n-1} + \cdots + a_0x_0 + b$$
$$t_n = t_{n-1}$$
$$t_n = \frac{1}{7} \sum_{i=n-7}^{n-1} t_i$$
$$t_n = \frac{1}{W} \sum_{i=n-W}^{n-1} t_i$$
https://github.com/stdlib-js/stdlib https://www.patreon.com/athan