I am trying to smooth my discrete-time data points using the method of WMA.
Currently, I am using n as the window size and the weight array, {n/(n(n+1)/2), (n-1)/(n(n+1)/2), ... , 1/(n(n+1)/2)}
.
If the y-value of each point is irrelevant, I can just simply randomly choose my size n.
However in my case, I hope to reserve the original values of the data points to the best extent. Thus, I cannot choose a big window that averages everything to flat.
My cut-off freq. is 3Hz and the sampling rate is 50Hz.
How may I choose the size of the window n?
Thanks in advance!