view arrows/dsp/adct.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 ae596261e75f
line wrap: on
line source
% adct - arrow for DCT
%
% adct :: M:natural -> arrow({[[N]]}, {[[M]]}, empty).
function o=adct(M)
	o=arrf(@mkdct,1,1);

	function f=mkdct(sizes_in)
		% take DCT size from size(1) of first input
		W=row(dct(eye(sizes_in{1}(1))),M);
		f=@(x)W*x;
	end
end