Does python has an equivalent function of moving sum? I want to take the maximum value of the variable P1 and then I want to calculate the moving sum using a slide window of 9 elements.
This is my code in MATLAB:
SP = movsum(max(P1,0),[9 0]);
Thanks for any help!