Prev: Highest throughput FFT implementation in hardware
Next: can the onboard flash be used to store parameters?
From: hyeewang on 16 Mar 2010 21:57 Why window the signal before computing LPC coefficients? What is the whys of windowing? I know windowing can prevent spectrum leakage,but LPC is none of business of FFT, so it has no spectrum leakage. Any comments would be appreciated!
From: Vladimir Vassilevsky on 16 Mar 2010 23:08 hyeewang wrote: > Why window the signal before computing LPC coefficients? > > What is the whys of windowing? I know windowing can prevent spectrum > leakage,but LPC is none of business of FFT, so it has no spectrum leakage. Because if you don't window the signal prior to the LPC, then the LPC will try to model the signal as if it abruptly starts from zero and goes to zero at the end. The overall accuracy of the LPC is going to be much worse in this case. > Any comments would be appreciated! How much is the "would be appreciation" ? Vladimir Vassilevsky DSP and Mixed Signal Design Consultant http://www.abvolt.com
From: robert bristow-johnson on 17 Mar 2010 01:12 On Mar 16, 11:08 pm, Vladimir Vassilevsky <nos...(a)nowhere.com> wrote: > hyeewang wrote: > > Why window the signal before computing LPC coefficients? > > > What is the whys of windowing? I know windowing can prevent spectrum > > leakage,but LPC is none of business of FFT, oh? > > so it has no spectrum leakage. are you sure about that, Hyee? > > Because if you don't window the signal prior to the LPC, then the LPC > will try to model the signal as if it abruptly starts from zero and goes > to zero at the end. specifically, LPC is computed from the autocorrelation of the (normally windowed) data. even though it can be computed using different (time-domain vs. frequency-domain) methods, the autocorrelation is the inverse DFT of the magnitude-square of the spectrum. the magnitude-squared spectrum will tend to have frequency components that the spectrum has and tend not to have frequency components that the spectrum doesn't have. now windowing in the time domain is equivalent to convolving (against the DFT of the window) in the frequency domain. not windowing is really windowing with the rectangular window; so the issue is, essentially, your choice of window. windowing with the rectangular window will have the narrowest bestest main lobe (that's generally good) but also has the biggest worstest side-lobes (that's generally bad). convolving with a function with big side lobes creates frequency components (of significant amplitude) that may not have existed in the pre-windowed spectrum of the data. so you probably want to trade away some narrowness of the main lobe to gain more suppression of spurious frequency components lest your LPC alg will think there are some resonances in the data that actually aren't there. > The overall accuracy of the LPC is going to be much > worse in this case. yes, what Vlad said. r b-j
From: hyeewang on 17 Mar 2010 20:58
>On Mar 16, 11:08=A0pm, Vladimir Vassilevsky <nos...(a)nowhere.com> wrote: >> hyeewang wrote: >> > Why window the signal before computing LPC coefficients? =A0 >> >> > What is the whys of windowing? =A0I know windowing can prevent spectrum >> > leakage,but LPC is none of business of FFT, > >oh? > >> > so it has no spectrum leakage. > >are you sure about that, Hyee? > >> >> Because if you don't window the signal prior to the LPC, then the LPC >> will try to model the signal as if it abruptly starts from zero and goes >> to zero at the end. > >specifically, LPC is computed from the autocorrelation of the >(normally windowed) data. even though it can be computed using >different (time-domain vs. frequency-domain) methods, the >autocorrelation is the inverse DFT of the magnitude-square of the >spectrum. the magnitude-squared spectrum will tend to have frequency >components that the spectrum has and tend not to have frequency >components that the spectrum doesn't have. > >now windowing in the time domain is equivalent to convolving (against >the DFT of the window) in the frequency domain. not windowing is >really windowing with the rectangular window; so the issue is, >essentially, your choice of window. windowing with the rectangular >window will have the narrowest bestest main lobe (that's generally >good) but also has the biggest worstest side-lobes (that's generally >bad). convolving with a function with big side lobes creates >frequency components (of significant amplitude) that may not have >existed in the pre-windowed spectrum of the data. so you probably >want to trade away some narrowness of the main lobe to gain more >suppression of spurious frequency components lest your LPC alg will >think there are some resonances in the data that actually aren't >there. > >> The overall accuracy of the LPC is going to be much >> worse in this case. > >yes, what Vlad said. > >r b-j > > Thank you all. Especially grateful to robert. You are always tell the essence. |