Questions tagged [fir]

FIR filters are filters with a finite duration impulse response.

Filter by
Sorted by
Tagged with
21
votes
4answers
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 ...
21
votes
3answers
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 ...
15
votes
1answer
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 ...
8
votes
2answers
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 ...
8
votes
2answers
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 ...
16
votes
6answers
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 ...
8
votes
6answers
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?
2
votes
3answers
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 ...
8
votes
2answers
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:} ...
4
votes
2answers
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 ...
3
votes
3answers
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 ...
2
votes
5answers
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. ...
5
votes
2answers
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 ...
3
votes
2answers
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)...
2
votes
1answer
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) ...
2
votes
1answer
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 ...
0
votes
1answer
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 ...
0
votes
3answers
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 ...
-1
votes
1answer
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? ...
10
votes
1answer
2k views

What's the advantage of adaptive IIR filter against FIR?

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 ...
3
votes
1answer
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 ...
3
votes
3answers
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 ...
2
votes
1answer
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 ...
4
votes
1answer
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 ...
2
votes
1answer
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 ...
2
votes
2answers
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,...
1
vote
1answer
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 ...
1
vote
2answers
2k views

Check if a filter is IIR or FIR

I have the following equation: $$H(z) = \frac{z^3+5z^2+3z+1}{10z^3}$$ I want to find out whether if its IIR or FIR. Here is the steps I have gone so far: $$H(z) = \frac{1}{10}\frac{z^3+5z^2+3z+1}{z^...
1
vote
1answer
535 views

Is an FIR filters 'transition width' frequency dependent?

I was recently brushing up on some FIR filter design and was browsing the Wikipedia page. A claim in the article caught my attention: The main disadvantage of FIR filters is that considerably more ...
0
votes
3answers
134 views

How to reliably compute the group delay of a comb filter

I applied the following FIR comb filter in real-time: y[n]=x[n]-x[n-40] Since this is an FIR, the group delay is D=(N-1)/2=20 samples. After applying the filter ...
5
votes
5answers
3k views

What Is the Transfer Function of a Moving Average (FIR Filter)?

To make post-processing easier, I export scope measurements as CSV files, which are then post-processed (mostly in Microsoft Excel, which is not the best tool for the job, but it is all I have at my ...
4
votes
1answer
133 views

Convert a Park McClellan FIR Solution to Achieve Stop-band Roll-off

Often it is more desirable to have a roll-off versus frequency of the rejection in the stopband; for example resampling filters where all the alias image locations fold into the first Nyquist Zone. ...
3
votes
1answer
720 views

How does parallel structure implementation of IIR speed up the process ? What happens in case of FIR?

I was learning about digital filter structures and there I came to know that parallel implementation of IIR filters speeds up the process and I understand that.But what I am not convinced of is that ...
3
votes
2answers
590 views

Design a linear-phase FIR filter approximating the magnitude of a given IIR filter

I have a biquad IIR filter from which I want to get a linear-phase FIR. I saw that related question but the OP does not care much about phase. I have troubles getting the exact same magnitude curve ...
1
vote
1answer
313 views

Oversampling while maintaining noise PSD

I'm designing a digital PID for control and stabilization of laser amplitude. The noise PSD of the laser intensity is around -140dB/Hz, and I want to servo that between DC and 100kHz. I think I've ...
0
votes
1answer
133 views

Least Squares FIR for Type II

Following this paper (see the Matlab example at the end), I am trying to make a least-squares algorithm in Octave, but for type II (I know about firls). For type I ...
0
votes
1answer
182 views

Compensate for FIR filter attenuation

Is there a simple way to compensate for the reduction in amplitude of a low pass filter of a noisy sine wave signal that has been smoothed using a FIR filter so that the amplitude of the smoothed sine ...
0
votes
2answers
305 views

Interpolated FIR filter group delay

I'm trying to design a digital low pass filter with a narrow transition band. My sampling rate is 25 kHz, the cut off frequency is 60 Hz & the transition band width is 4 Hz. I'm looking for about ...
0
votes
1answer
153 views

Calculating filter coefficients of a Moving average with error correction

I have an oversampling ADC where I need to correct Gain/offset errors 'during' each conversion. This also links to my previous question - Moving average and linearization of two piecewise linear ...
0
votes
0answers
44 views

FIR Filter Magnitude Response

This is the shape of the bipolar amplitude function for a FIR filter with odd m: I have 2 questions : If i want to use this FIR as a low pass filter between 0 and $\frac{F_{c}}{2}$ , how can i set ...
0
votes
1answer
303 views

How to filter an OFDM signal? [closed]

Across the channel bandwidth there shoudd be 100 RBs (central 1200 sub carriers in a 2048 bin). Max power normalized to 0dB, the first OOB lobe should be -34dB. This 1st lobe on either side is at 5 ...
0
votes
1answer
147 views

How to Apply Least Squares Estimation for Sparse Coefficient Estimation?

The model is expressed as, $$y(n) = \sum_{i=0}^{p-1} r(i) x(n-i) + v(n) \tag{1}$$ where $\mathbf{r} = [r_1,r_2,\ldots,r_p]^T$ is the sparse channel coefficients of length $p$, $\mathbf{x} = [x_1,x_2,....
0
votes
0answers
103 views

Estimating frequency when there's little isolation between signal and noise frequencies

Say I have a signal which is guaranteed to have a frequency between 110-120 Hz but is corrupted by interference signals that're very close to this frequency range. For example, let the interference ...
0
votes
1answer
347 views

Convolution with an impulse response does not give the same result as the frequency response

Context I am trying to design a linear-phase FIR filter with the following frequency and phase responses: Designing the filter Given its characteristics (peak filter at 1kHz with 9dB gain and Q=7), ...