view arrows/@asignal/asignal.m @ 6:0ce3c2070089

Removed duplicate code and fixed doc in timed_action.
author samer
date Mon, 14 Jan 2013 14:33:37 +0000
parents 672052bd81f8
children
line wrap: on
line source
% asignal - Arrow which produces frames from a signal
%
% asignal :: 
%    signal(C,R),
%    N:natural ~'block size',
%    M:natural ~'hop size'
% -> arrow({},{[[C,N]]]}).
%
% asignal :: 
%    signal(C,R),
%    N:natural ~'block size',
% -> arrow({},{[[C,N]]]}).
%
% If hop size is omitted, it defaults to the block size

function o=asignal(source,block,hop)
	if nargin<3, hop=block; end
	s.source=source;
	s.block=block;
	s.hop=hop;
	o=class(s,'asignal',arrow(0,1));
end