sportran.md.tools.filter¶
Functions
|
Computes the running average of a numpy array over WF consecutive elements (or WF+1 if WF is even): |
- Computes the running average of a numpy array over WF consecutive elements (or WF+1 if WF is even):
(X[i-WF/2]+…+X[i]+…+X[i+WF/2]) / WF
assumes that the array is “even” ( X[-i] = X[i] ) and anti-periodic (X[(N-1)+i]=X[(N-1)-i]), like a ONE-SIDED PSD.