Content deleted Content added
Namasikanam (talk | contribs) m →Pseudocode: The previous pseducode is too psedu…… It makes too mistakes in detail. |
|||
Line 40:
==Pseudocode==
//////// revised by fantastic ////////
O = M – 1; // overlap length must be M-1
L = M; // >=1 is OK
P = O + L;
idx = - (O - 1); // starting index which is offset M-1 in matlab
'''while''' (idx <= N)
i1 = max(1, idx); // must be >= 1
yt = IFFT( FFT(x(i1:i2), P).*H, P );
y(idx:idx+P-M) = yt(M:P); // discard first M-1 values and concatenate the remaining
idx = idx + L;
y = y(1:M+N-1); // the first M+N-1 values are the convolution result
==Efficiency==
|