You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
yes the code is definitely correct in both polars and extension package.
let result = (1. - alpha) * value + alpha * prev_result;
but in the docstring (regardless of order), alpha i is being multiplied by x_i (new data) and no the previous state: y_i &= \alpha_i x_i + (1 - \alpha_i) y_{i-1};
I think the docstrings should be: y_i &= \alpha_i y_{i-1} + (1 - \alpha_i) x_{i};
Thanks for the nice package. A minor ask -
I was trying to follow the maths w/ ewma_by_time and noticed what I think is a minor typo:
In docstring:
In actual code, and what I think is correct:
Notice alpha hits the previous result (i.e. should be y_{i-1}) and 1 - alpha hits latest data (x_i).
If you agree, it might make sense to do the same w/ the upstreamed polars ewm_mean_by.
Anyways, thanks for the nice work on this feature.
The text was updated successfully, but these errors were encountered: