Questions tagged [fir]

FIR filters are filters with a finite duration impulse response.

44 questions
Filter by
Sorted by
Tagged with
27k views

How many taps does an FIR filter need?

I am looking to design a set of FIR filters to implement a low pass filter. I am also trying to reduce the latency of the signal through the filter so I am wondering what the minimum number of taps I ...
5k views

FIR Filter Design: Window vs Parks McClellan and Least Squares

Are there any advantages to use a window approach over Parks-McClellan (further abbreviated here as PMcC) or Least Squares algorithms for FIR filter design of a low pass filter? Assume with today's ...
5k views

Digital filter design basic principles (IIR/FIR)

Although I have a solid experience in designing audio engines and such, I am fairly new to the realm of Digital Filter Design, particularly IIR and FIR filters. In other words, I'm trying to learn as ...
7k views

Filter Order Rule of Thumb

Is there a rule of thumb for calculating the approximate filter order of a FIR/IIR based on passband vs sample rate? I seem to remember reading about it once in Undergrad. I'd think you could make a ...
552 views

Gaussian FIR filter with no multipliers?

What is the simplest way to implement a Gaussian FIR filter with unity gain coefficients and no multipliers? Please preface your answer with spoiler notation by typing the following two characters ...
24k views

Why is a linear phase important?

If symmetry conditions are met, FIR filters have a linear phase. This is not true for IIR filters. However, for what applications is it bad to apply filters that do not have this property and what ...
4k views

Convert a FIR to an equivalent IIR

Is there a way to convert a FIR to an IIR filter with the most similar behavior?
1k views

How to design very narrow, sharp lowpass filters - Only DC needed?

I asked exact the same here one year ago: One year ago question I asked this question again here, because after one year, I have learned more about DSP and am thinking ways to improve it. Filter ...
4k views

Why would one use a Hann or Bartlett window?

Suppose we're designing a low-pass FIR filter, and I want to use one of these three windows: Bartlett, Hann or Hamming. From Oppenheim & Schafer's Discrete-Time Signal Processing, 2nd Ed, p. 471:} ...
669 views

Are SOS structures better for linear phase FIR filters?

I've seen many discussions suggesting that SOS's are often/usually the preferred structure for fixed point hardware filter implementations, since they preserve conjugate pairs, etc., but I've never ...
27k views

Group delay of the FIR filter

For an FIR filter, with symmetrical tap values $h[N-1-n]=h[n]$, why is the group delay $\frac{N-1}{2} T$ (where $N$ is the number of taps of the FIR filter and $T$ is the sampling time)? Why is ...
4k views

How to design very narrow band, very sharp low pass filters - Only DC needed?

I am using a DSP processor to sample signals at 108kHz and I only want to get the DC part out of it. Such a high sampling rate is used because I want to use oversampling to reduce quantization noises. ...
4k views

Given the input and the output, how to determine the impulse response?

I would like to find the impulse response, $h[n]$, of an LTI system given the input $$x[n] = [1,-3,2]$$ and the output $$y[n] = [1,-1,-4,4]$$ I know that $y[t]=x[t]*h[t]$, but I am having hard ...
585 views

Raised-Cosine Filter - calculating phase response

I want to compute phase response of an raised-cosine FIR filter. I have trouble finding the complex transfer function of the filter in literature (there is a real valued transfer function of frequency)...
1k views

Minimum phase FIR method

I am trying to make a minimum phase filter (in wxMaxima) according to these steps: first create a "normal" FIR (a simple sinc, wc=0.4, random example, but in the pictures a remez with Octave) ...
270 views

Obtaining phase and magnitude of 2 spectral components after ADC

I am currently implementing a digital filter to obtain the output of a PID controller. The control loop is carried out by applying a 1kHz sine wave at the input of the system and reading the output ...
591 views

Removing an unwanted sinusoidal signal using FIR filter

I am learning about the $\mathcal Z$-transform and FIR filters and I do have problem with the following exercise: There is given signal $$x[n] = s[n]+\sin\left(2\pi f_n n\right)$$ where $s[n]$ is a ...
598 views

Help in understanding the formula of Signal-to-Noise-Ratio (SNR) - Part 1

Question 1: Consider an Autoregressive model : \begin{align} y[n] &= y[n-1] + x[n]\\ z[n] &= y[n] + w[n] \end{align} where $y$ is the output observation, $x$ is a random input and $w$ is ...
36 views

What exactly is stored in the buffer array in the code below? Is it the values of x[n-k] or something else?

What exactly is stored in the buffer array in the FIR Filter code below? Is it the values of x[n-k] or something else? ...
2k views

Adaptive IIR filters is not straightforward, and may be unstable. Many people say that adaptive IIR filters use less coefficients than FIR filters. What I'm curious about is how many coefficients can ...
4k views

Vector length output of discrete time convolution

Suppose that the impulse response of a discrete time filter is $h[i]$ where $i=0,1,2,...,N-1$ and the input sequence to the filter is $x[i]$ for $i=0,1,2,.., M-1,$ what would be the length of output ...
2k views

Is there a way to derive an FIR filter using an IIR filter?

I know there's a thread similar to this one here, but the OP is asking the reverse of what I'm trying to find here. I've done some research on the web with very few sources coming up with actual ...
537 views

FIR to linear-phase FIR

I am trying to convert an FIR impulse into linear-phase FIR impulse, I need to remove the phase response, so when it is applied to a sound it only changes the amplitude response. Here is my code ...
2k views

What exactly is Savitzky-Golay differentiation filter?

I could understand Savitzky-Golay filter as being smoothing filter, but then there also seems to be Savitzky-Golay differentiation filter, though for some reason, details do not seem to be clear. So ...
586 views

Transform linear-phase FIR to minimum-phase FIR

Given a FIR filter (non-causal) with phase zero and real coefficients given by $$H(z) = \sum_{n=-M}^{M}h[n]z^{-n}$$ with ripple $\delta_2$. How can I obtain a filter $H_{{\rm min}}(z)$ of minimum ...
7k views

Determining the Filter Coefficients of an FIR Filter

I need to find the filter coefficients of an FIR filter that will block sinusoids of frequency $200\ \rm Hz$ if the sinusoid is sampled at $1.2\ \rm kHz$. I feel like this is a fairly simple problem,...
775 views

Given an FIR filter coefficients, how can I find coefficients of its equalizer filter?

I have an N-tap direct form complex FIR filter with known coefficients [c0 c1 .. cn]. I want to find the coefficients of its equalizer filter which when cascaded ...
2k views