samer@3: % window - Window a sequnce of arrays in a given dimension samer@3: % samer@3: % window :: seq [[N,M]] -> seq [[N]]. samer@3: % window :: seq [[N,M]], L:natural -> seq [[N,L]]. samer@3: % window :: seq [[N,M]], L:natural, natural ~'hop size' -> seq [[N,L]]. samer@3: % samer@3: % This is just short for windowdata(...) samer@3: % Possible optimisation: samer@3: % when the span and hop are much less than the input buffer size samer@3: % and the source data does not have an efficient extract method, samer@3: % then it is worth caching the source data, ie window(cache(x),...) samer@3: function Y=window(X,varargin), Y=seq.window(X,varargin{:});