aggregation_a - Perform the m-averaged aggregation of a time series x
Perform the m-averaged aggregation of a time series x. x is the signal with length N.
x=sin(0:0.01:2*%pi); xaggreg=aggregation_a(x,5); scf; subplot(2,1,1);plot2d(1:length(x),x,rect=[0 min(xaggreg) length(x) max(xaggreg)]);xtitle('x');xtitle('x'); subplot(2,1,2);plot2d(1:length(xaggreg),xaggreg,rect=[0 min(xaggreg) length(x) max(xaggreg)]);xtitle('5-averaged aggregation of x');