Home > other >  Similar to the SMOOTH function of MATLAB Python?
Similar to the SMOOTH function of MATLAB Python?

Time:12-13

A one dimensional matrix, need smoothing,
Have a SMOOTH function in MATLAB, the returned result is smoothing matrix,

Ask if there are any similar function at Python?
My Internet a lot, what are some of the interpolation, convolution, such as is not the desired results,
In the MATLAB SMOOTH function principle is simple:
Yy (1)=y (1)
Yy (2)=(y (1) + (2) + y y (3)/3
Yy (3)=(y (1) + (2) + (3) + y y y (4) (5) + y)/5
Yy (4)=(y + y (2) (3) + (4) + (5) + y y y (6))/5
.


Consult everybody,
  • Related