移动平均值

T1:
LOAD F1,F2,F2 AS F3,1 AS FLAG;
load * inline [
F1,F2
a,1
b,2
c,3
d,4
e,5
f,6
];

FOR n=1 to 3

let tn = $(n)+1;

NoConcatenate
T(n)) AS F3
Resident T(n);

next

FinalTable:
load *,F3/(tn);
DROP Table T$(tn);

EXIT Script;

你可能感兴趣的:(移动平均值)