Re: determing the scaling factor



On Aug 11, 10:28 pm, "tonga" <binwei_w...@xxxxxxxxxxx> wrote:
I'm writing some code for power spectral estimation using FFT. The data
format I used is Q15 fixed point format. Since I need to scale the original
signal within the Q15 range between -1~0.9999, I need to choose a proper
scaling factor for the original data sequence. But how can I choose this
scaling factor so that it does not cause overflow, nor does it cause
underflow? I tried several different values for this scaling factor but it
either resulted in overflow or underflow. I guess the reason is because the
power spectrum involves with successive accumulation of square magnitude of
FFT output, which may easily goes beyond [-1,1) range. But I don't know how
to select this scaling factor in my case. Anyone has idea on this?

You should divide each input sample by 32768 before windowing.
The window should be floating point between [-1,1].
The window should sum to one if you are looking for accurate tone
power.
Check the scaling performed by the forward FFT.
Divide each FFT mag^2 value by the total number of FFTs performed
before accumulating.
For a bin centered pure tone input, you should get a result of 1 == 0
dBFS at the the expected bin.

John
.



Relevant Pages

  • determing the scaling factor
    ... I'm writing some code for power spectral estimation using FFT. ... format I used is Q15 fixed point format. ... scaling factor for the original data sequence. ... power spectrum involves with successive accumulation of square magnitude of ...
    (comp.dsp)
  • Re: determing the scaling factor
    ... format I used is Q15 fixed point format. ... signal within the Q15 range between -1~0.9999, I need to choose a proper ... scaling factor for the original data sequence. ... At the output of each stage you could scale down by 2 to offset the ...
    (comp.dsp)
  • Re: Why fixed point ?
    ... let's say a multiplier takes two 16 bit integers ... given fixed point format tells us what the implicit scaling is. ... need the shift because I expected the result in a different scaling ...
    (comp.dsp)
  • Re: Windowed FFT power and amplitude spectrum
    ... PS: You can find a nice explenation about coherent power gain on this page: ... > Here is another fascinating question on FFT spectrum!! ... > windowing is applied to the time series before FFT is applied. ... > multiplied by a scaling factor but I am not sure how this scaling factor ...
    (comp.dsp)
  • Scaling the fft
    ... I am trying to perform an fft on some data but have been ... having trouble with the scaling of the frequency axis. ... resulting gaussian on transform is expected to have width ...
    (comp.soft-sys.matlab)