[Scilab-users] efficient calculation for a moving window

Rafael Guerra jrafaelbguerra at hotmail.com
Sun Mar 26 19:41:52 CEST 2017


Hi Fujimoto,

As requested, for the example constructed the logic was:
//  m =20, moving window size
//  y: has length 100, input vector with values to be processed 
//  X+Y-1: has size 81x20, each row has indexes of moving window (1-20,
2-21,..., 81-100)
//  y(X+Y-1): has size 1x1620, i.e., it is a vector with all y values at
each of 81x20 indexes
//  matrix(...):  reshapes last serialized result to the required matrix
shape (81x20) for f(...)
//  f(...): computes along input columns (the mean) for each row; output y2
is a 81x1 column vector

Regards,
Rafael



--
View this message in context: http://mailinglists.scilab.org/efficient-calculation-for-a-moving-window-tp4035997p4036023.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.



More information about the users mailing list