view sequences/@seq/window.m @ 6:0ce3c2070089

Removed duplicate code and fixed doc in timed_action.
author samer
date Mon, 14 Jan 2013 14:33:37 +0000
parents 3f77126f7b5f
children b1280319413e
line wrap: on
line source
% window - Window a sequnce of arrays in a given dimension
%
% window :: seq [[N,M]] -> seq [[N]].
% window :: seq [[N,M]], L:natural -> seq [[N,L]].
% window :: seq [[N,M]], L:natural, natural ~'hop size' -> seq [[N,L]].
%
% This is just short for windowdata(...)
% Possible optimisation:
%    when the span and hop are much less than the input buffer size
%    and the source data does not have an efficient extract method,
%    then it is worth caching the source data, ie window(cache(x),...) 
function Y=window(X,varargin), Y=seq.window(X,varargin{:});