tailscrap.m File Reference


Functions

impulse response nh ()

Variables

function maxabsdiff
 nfft = 256
 h = rand(1,nh)
 x = rand(1,nfft)
 hpad = [ h(nh) zeros(1,nfft-nh) h(1:nh-1) ]
baseline comparison y1 = filter(h,1,x)
 y1_notrans = y1(nh:nfft)
fast convolution y2 = ifft( fft(hpad) .* fft(x) )
 y2_notrans = y2(1:nfft-nh+1)

Function Documentation

impulse response nh (  )  [virtual]

Type Constraints


Variable Documentation

function maxabsdiff

Initial value:

tailscrap()
% test code for circular convolution with the scrapped portion 
% at the tail of the buffer

nfft = 256

h = rand(1,nh)

x = rand(1,nfft)

hpad = [ h(nh) zeros(1,nfft-nh) h(1:nh-1) ]

baseline comparison y1 = filter(h,1,x)

Referenced by csl::Moog::nextBuffer().

y1_notrans = y1(nh:nfft)

fast convolution y2 = ifft( fft(hpad) .* fft(x) )

y2_notrans = y2(1:nfft-nh+1)


Generated on Thu Sep 17 23:14:16 2009 for CSL by  doxygen 1.5.8