Questions tagged [digital-filters]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
22
votes
4answers
37k 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 ...
14
votes
2answers
3k views

Is a high-passed signal the same as a signal minus a low-passed signal?

My question is, if I want to high-pass a signal, is it the same as low-passing a signal and subtracting it from the signal? Is it theoretically the same? Is it practically the same? I have searched (...
12
votes
5answers
2k views

Why do digital filters work?

So I just started reading on FIR and IIR filters and am amazed by how "simple" the theory seems, so far. But what confuses me is, why does filtering work by creating a weighted sum of previous ...
7
votes
2answers
25k views

Transfer function of second order notch filter

Can anyone mention the transfer function of second order notch filter to remove the line frequency of 50 Hz, in terms of frequency and sampling rate. Just like for Low pass Butterworth filter as, $$ ...
7
votes
6answers
1k views

Why can't a causal digital filter have an infinitely sharp transition between the passband and the stopband?

In DSP book by Proakis and as well as in this pdf, it is mentioned that practical causal digital filters cannot have an infinitely sharp transition from Pass-band to Stop-band. Why is it so? Can you ...
7
votes
3answers
462 views

Protect an IIR filter from being reverse-engineered

I created a somewhat unique IIR filter and I want to protect the filter from being reverse-engineered I think you all know it is quite easy to get all the different weights of an IIR by using impulse ...
7
votes
5answers
7k 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 ...
7
votes
1answer
1k views

Digital filter coefficients from low-pass to high-pass

Given I have coefficients a0, a1, a2, b1, and b2, defining the difference equation for a digital filter as: ...
6
votes
4answers
359 views

Make a signal that fits another the best possible with a limitation in the 2nd derivative

Consider this step function: The signal that "fits" this should look like the following (in green): The corners are now smooth because the maximum second derivative allowed is not infinite anymore. ...
6
votes
2answers
5k views

Exponential weighted moving average time constant

I think it is an easy question but I am stuck. I want to derive that $$ \alpha = -e^{\frac{-T}{\tau}}\,. $$ Can someone provide me with an answer? [EDIT] Sorry guys, this was really a senseless ...
5
votes
2answers
2k views

What is the largest "safe" order for the digital Butterworth filter of a given signal?

Say I want to apply a zero-phase Butterworth bandpass filter, implemented in MATLAB using butter and filtfilt. So, for an order-$...
5
votes
2answers
413 views

How Come the Low Pass Filter in Sobel Operator Isn't Normalized?

I am relatively new to the field of computer vision and I have just learnt about the sobel operator. The sobel operator in the x direction is a convolution of the finite difference kernel $[1,0,-1]$ ...
4
votes
5answers
3k views

What's the Q factor of a digital filter's pole?

For the analog S-plane, the Q factor depends on the angle of the complex pole $p$ from the horizontal axis, $\theta = \arg p$: damping factor $\zeta = \frac{1}{2Q}$, and $\zeta = \cos(\theta)$, and $\...
4
votes
2answers
142 views

DSP Book with More Applications

The process of my DSP class used the Oppenheimer DSP book as text. Although I can easily understand the math in the book, I found it lack examples and applications, hence I still cannot build a ...
4
votes
1answer
662 views

What's Logic Behind the Construction of Sobel's Filter in Image Processing?

I am basically very new to this image processing field. I am presently working on edge detection on colour images. While learning the basics of edges and edge detection in images, I encountered image ...
4
votes
1answer
332 views

Problems with implementation of a band-stop filter on an MCU (dsPIC) using fixed-point arithmetic

I'm trying to implement a band-stop (notch) filter on a microcontroller dsPIC33EP64GS506 to filter out a $100\textrm{ Hz}$ component from an input signal. The ...
4
votes
2answers
247 views

How to remove power line interference?

I have a couple of datasets that show a peak around the 50-60 Hz range (mostly around 55Hz and in some cases at their harmonics i.e. 100-120Hz.) In some datasets the spike is significant in comparison ...
4
votes
2answers
4k views

Transposed Direct Form II VS Direct Form II IIR filters?

I read in "Discrete-Time Signal Processing" Reference, in transposed Direct Form II filters section, that it implements zeros first then poles(unlike Direct form II which implements poles first), ...
4
votes
1answer
251 views

Relationship between wavelet shape and wavelet filters

MATLAB has a library of wavelet functions, showing their "continuous forms" as well as the the decomposition and reconstruction filters. In decimated wavelet transform the filter size remains the ...
4
votes
1answer
1k views

Polyphase Filter decomposition. It is not working

So, I want to do a polyphase implementation of a filter bank (I had problems with it since the beginning and I already asked for help to the community in the past, indeed: Norm MPEG-1 Layer III (Mp3) ...
4
votes
2answers
4k views

Digital filters in LabVIEW

I am very new in signal processing and using digital filters. I have to use a low-pass filter to analyze my data in LabVIEW and have a question about it. Any help and advice is appreciated. I am ...
4
votes
1answer
928 views

How to include phase in a sinusoidal Kalman Filter

I start with the equation for sinusoidal motion with an offset and differentiate to get the 2nd order ODE describing the motion of the object. \begin{align} x &= A\sin(\omega t + \phi) + O\\ \dot{...
4
votes
1answer
48 views

Phase Response of $N$-th order Digital All-Pass Filter

I am having trouble reconciling my derivation of the phase response of an N-th order all-pass filter with those I am finding in the literature, and I figured someone here could help me. Real Version: ...
4
votes
0answers
83 views

Wave Digital Filter Diode Equation?

I'm trying to understand how diode circuits are implemented in wave digital filters, particularly for clippers. The research papers and other sources I've looked at use the equation $$I(V) = 2I_s \...
3
votes
2answers
640 views

Numerically Stable IIR filter

I am making an IIR Filter and I am running into problems with stability with higher orders. The values go off to infinity as soon as it starts. So far, I've been using MATLAB to generate my filters ...
3
votes
2answers
8k views

Complex low pass filters

I am searching for documentation on the behaviour of complex low pass filters, and their application in telecommunications. Thank you
3
votes
2answers
296 views

Resources for learning about filters from scratch?

Topic of filters is very important in signal processing So i want to learn about filters from scratch and then eventually reaching FIR and IIR filters I have some idea about low pass,high pass,band ...
3
votes
2answers
491 views

Question about zero-phase filter bank

I found what I believe is a valid solution to the following assignment problem but the answer is bothering me. Let $$H_0(z) = 1+2z^{-1}+3z^{-2}+2z^{-3}+z^{-4}\quad\textrm{and}\quad H_1(z)=H_0(-z).$$...
3
votes
2answers
176 views

High-pass filter with quantized (fixed-point) coefficients

I have a high pass IIR filter with numerator b = [0.997688673703782,-1.995377347407564,0.997688673703782]; and denominator ...
3
votes
2answers
213 views

Find the transfer function of the difference between IIR and FIR filter

I am using a filter following equations from papers. It is basically the difference between exponential moving average and simple moving average. $$L[n]=\frac{1}{\alpha_L}f[n]+\left(1-\frac{1}{\...
3
votes
1answer
3k views

Butterworth band pass filter

I am trying to build a Butterworth bandpass filter. My intent is to have a pass band between $250\textrm{ Hz}$ and $1000\textrm{ Hz}$. However the plot doesn't look right, as can be seen from the ...
3
votes
2answers
119 views

Estimating an Image Filter from Examples

I am sure this question must be fairly easy and could have been answered on this site but perhaps I am not finding the right keywords to search for it. I would like to know what are the common ...
3
votes
1answer
2k views

Calculation frequency response of digital filter with known structure

Short question What are main stages (steps) of calculation frequency response of digital filter by their structure? Detailed question Let suppose that there is discrete FIR filter with known ...
3
votes
1answer
3k views

Difference between $\tt freqz()$ and $\tt plot(abs(fft()))$ in MATLAB

I've plotted the response of a high-pass filter x=[1 -1]; freqz(x) gave me where as the magnitude plot for the ...
3
votes
1answer
112 views

Why is $y(n)=x(n)-x(n−1)+x(n-2)$ a low-pass filter?

I know that it's a low-pass FIR filter with impulse response of length equal to $3$, but I don't know how to explain exactly why it's low-pass.
3
votes
1answer
113 views

Advice on designing a digital filter that doesn't have phase-sensitive edge artifacts?

I'm pretty well versed in statistics, but not really digital signal filtering. I have a data scenario where I expected to be able to pretty easily filter out some noise (human pulse) that's at a known ...
3
votes
1answer
70 views

How do I interpret this block diagram correctly?

I am reading notes ahead of the class and have encountered this particular slide: While I completely agree with the first block diagram, I am at a loss trying to understand how the second block ...
3
votes
2answers
481 views

What happens when linear phase is critical? [duplicate]

I am studying the topic digital filters. And in the slides it said,"if linear phase is not critical, Infinite Impulse Response (IIR) filters yield a much smaller filter order for a given application". ...
3
votes
2answers
6k views

How does transition width of a low-pass filter affect a message which is well within the pass-band?

I'm taking a communication systems course and we use GNURadio in the lab. In an exam, we had a simple question where we were asked to demodulate a Dual Side Band (with carrier) AM signal in GNURadio. ...
3
votes
2answers
4k views

Why analog anti aliasing filter is used before analog to digital converter when there is already a digital filter after ADC?

Normal data acquisition consist of: Analog anti aliasing filter( Sampling frequency : $5\textrm{ kHz}$) ADC - Digital Filter - (Sampling : 200K samples /sec) Digital low pass filters Filters DAC ...
3
votes
1answer
1k views

Why is there little emphasis on phase distortion?

I have a question regarding the frequency response of digital filters. Specifically the phase aspect of the frequency response. Why do we not seem to care about the nonlinear phase response in ...
3
votes
2answers
1k views

The history of FIR filters

Does anyone know the name of the first DSP (sampled data) practitioner who discovered that real-valued symmetrical-coefficient FIR filters exhibit linear phase in the frequency domain?
3
votes
1answer
205 views

3 dB bandwidth of a filter

I am solving one of the question from signal processing about calculating the 3dB bandwidth of the filter. But I am stuck once I got the magnitude response of the filter. Can someone help me with this?...
3
votes
1answer
102 views

Is it possible to design a band-pass filter with fewer taps than a series HPF + LPF?

I am digitally filtering a signal that is streaming live. The goal is to reduce the filter delay as much as possible while maintaining the quality of some measurements based on the filtered signal. ...
3
votes
2answers
369 views

Alias-free digital nonlinear filter design

@Jazzmaniac has a good answer to the question of how to design an alias-free digital nonlinear time-invariant filter here: https://dsp.stackexchange.com/a/28787/18276 Basically, according to that ...
3
votes
1answer
960 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
321 views

Question about decimation/downsampling

I am using an on-chip SAR adc where for some reason I can only get accurate signal reconstruction and filtering when I sample at almost 100 times my desired sampling frequency. Specifically, the ...
2
votes
3answers
122 views

Why must the order of a Band-Pass and Notch filter always be even?

My professor mentioned that the order of a band-pass and a notch filter must always be even, when showing an example of designing a digital filter using the bilinear transformation. Then he also ...
2
votes
2answers
15k views

determining type of filter given its pole zero plot

How can I classify a filter given its pole-zero map. For example I've got my zero's located at $\pm j$ and my poles located at $\pm\frac{1}{2}j$.
2
votes
2answers
1k views

3 dB cut-off frequency of first-order IIR high-pass filter

As descipbed in this great answer (thank you Matt L.), the suggested exact formula was very precise. I need a first order high-pass with similar precision. EDIT: (clarification) The low-pass filter ...

1
2 3 4 5
8