5
$\begingroup$

In my filter specs, the passband gain is given as 6.02db. How do I achieve this?

Usually all texts give the passband gain as 0db (as well as passband ripples if any).

$\endgroup$
6
$\begingroup$

As pointed out by niaren, you have to multiply by two, but this also means that your whole magnitude response is shifted up by 6dB, also in the stopbands. So you will have 6dB less stopband attenuation. Of course, the attenuation relative to the passband gain remains constant. You have to take this into account when designing your filter. Say you need 60dB stopband attenuation in absolute terms, not relative to the passband gain, then you need to design a 0dB gain filter with 66dB stopband gain. After multiplying the coefficients by 2 you'll get 6dB passband gain and 60dB stopband attenuation.

$\endgroup$
3
$\begingroup$

This simply means that you have a non-unity gain in the passband. The number 6.02 in decibels corresponds to a multiplicative gain factor of two. You can check it like so:

$$10^\tfrac{6.02}{20} = 2 $$

All you have to do then is multiply all you FIR filter coefficients by 2.

$\endgroup$
  • 1
    $\begingroup$ It should be $10^{\frac{6.02}{20}} = 2$ because we're talking dBs. $\endgroup$ – Matt L. Apr 25 '13 at 10:35
  • $\begingroup$ @Matt You're absolutely right, thanks. I realized it as I was writing the answer and then forgot to fix it. Very eagle eyed of you! = ) $\endgroup$ – Phonon Apr 25 '13 at 10:38
  • $\begingroup$ Just to make sure that we don't cause even more confusion ... :) $\endgroup$ – Matt L. Apr 25 '13 at 10:43
2
$\begingroup$

Just multiply your FIR coefficients by 2. You can verify your passband gain at DC by setting $z=1$ which amounts to just summing the coefficients.

$\endgroup$
  • $\begingroup$ but if i multiply by 2, will it affect my other filter specs like transition region or passband/stopband ripples $\endgroup$ – saggy Apr 25 '13 at 6:28
  • $\begingroup$ @saggy: It will shift your entire filter response up by 6 dB. It won't change the amount of ripple. $\endgroup$ – Jason R Apr 25 '13 at 12:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.