etoumey / tripy

Python TRIMP calculator and training companion for running.
3 stars 0 forks source link

Exponentially Weighted Moving Average #3

Closed etoumey closed 5 years ago

etoumey commented 6 years ago

How do you do it? I don't know. Panda supposedly has a function and it is applied below. Right now just using a moving average for PMC.

https://sites.google.com/site/hardwaremonkey/blog/ewmafilterexmpleusingpandasandpython

etoumey commented 5 years ago

I think EWMA should be calculated recursively following:

Today's CTL = Yesterday's CTL + (Today's TRIMP - Yesterday's CTL)/(time)

Where time is the duration of the moving average

etoumey commented 5 years ago

Recursively implemented