Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [filter-design]

Fiter design is the process of designing a filter.

42
votes
6answers
42k views

Simplest way of detecting where audio envelopes start and stop

Below is a signal which represents a recording of someone talking. I would like to create a series of smaller audio signals based on this. The idea being to detect when 'important' sound starts and ...
27
votes
4answers
26k views

What is the true meaning of a minimum phase system?

What is the true meaning of a minimum phase system? Reading the Wikipedia article and Oppenheim is some help, in that, we understand that for an LTI system, minimum phase means the inverse is causal ...
25
votes
2answers
37k views

Filter order vs number of taps vs number of coefficients

I'm learning DSP slowly and trying to wrap my head around some terminology: Question 1: Suppose I have the following filter difference equation: $$y[n] = 2 x[n] + 4 x[n-2] + 6 x[n-3] + 8 x[n-4]$$ ...
23
votes
5answers
14k views

What Is the Best First Order IIR (AR Filter) Approximation to a Moving Average Filter (FIR Filter)?

Assume the following first order IIR Filter: $$ y[n] = \alpha x[n] + (1 - \alpha) y[n - 1] $$ How can I choose the parameter $ \alpha $ s.t. the IIR approximates as good as possible the FIR which is ...
21
votes
3answers
4k 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 ...
20
votes
1answer
5k views

What is the difference between Remez exchange and Parks-McClellan filter design?

A question recently came up regarding Parks-McClellan and some of the comments point out that the wikipedia article on Parks-McClellan states, ...the Parks-McClellan algorithm is a variation of ...
19
votes
4answers
22k 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 ...
19
votes
3answers
822 views

How were windows originally conceived?

I am aware of the common types of windows, (Hamming, Hanning, Kaiser, Tukey, etc etc). However while many books describe them - almost none tell me just how exactly they were derived. What is so ...
19
votes
3answers
9k views

How does cascading biquad sections for higher order filters work?

I'm trying to implement an 8th order IIR filter and every application note and textbook I've read says that it is best to implement any filter of order more than 2 as second order sections. I used <...
19
votes
6answers
7k views

Where can I get an open source implementation of the Parks-McClellan optimal FIR filter design algorithm?

Background: Often times I am doing some sort of signal processing task that requires a unique filter. Usually at this point I go to MATLAB and generate a new unique filter using $\tt firpm()$. The ...
16
votes
3answers
43k views

FIR filter with linear phase, 4 types

I know there are 4 types of FIR filters with linear phase, i.e. constant group delay: (M = length of impulse response) Impulse response symmetrical, M = odd Imp. resp. symmetrical, M = even Imp. resp....
15
votes
5answers
45k views

How to write lowpass filter for sampled signal in Python?

I have some signal that sampled each 1 ns (1e-9 sec) and have, let say, 1e4 points. I need to filter high frequencies from this signal. Let say I need to filter frequencies higher than 10 MHz. I want ...
15
votes
3answers
3k views

A good textbook for designing signal filters

Since a couple of months ago I started being actively involved in the area of control of dynamical systems. In most cases, designing a controller for a given dynamic system will require the ...
15
votes
6answers
3k views

Filter design by distributing poles and zeros on parametric curves

An $N$th order Butterworth low-pass filter of cutoff frequency $\omega_c$ can be designed by distributing $N$ poles uniformly with respect to parameter $0 < \alpha <1$ on an s-plane parametric ...
15
votes
2answers
1k views

What are the differences between these two Gabor filter functions

I need to enhance the visibility of veins on dorsal hand vein images in my project. I use two different even-symmetric Gabor filters bank improve vein visibility. First bank consists of these gabor ...
15
votes
1answer
1k views

How to deal with a negative pole (unstable) in the pre-filter of a control system?

So while answering how to design a PI controller for a first order time delayed system (Question Here ) Here is the closed loop equation to a control system: $$ G_C(s) = \frac{\frac{K}{T}(1-sT)(s)...
14
votes
6answers
19k 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 ...
14
votes
9answers
20k views

Why do we use window in time domain rather than do FFT modify the spectrum and than inverse FFT

I thought that DSP would be done by using FFT of portions of a signal, modify the samples that result from FFT (since they represent the spectrum of our signal + noise) and remove any unwanted signals ...
14
votes
2answers
25k views

How do I manually plot the frequency response of a bandpass Butterworth filter in MATLAB without freqz function?

I have code like below that applies a bandpass filter onto a signal. I am quite a noob at DSP and I want to understand what is going on behind the scenes before I proceed. To do this, I want to know ...
14
votes
2answers
2k 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 (...
13
votes
2answers
5k views

Which IIR filters approximate a Gaussian filter?

So it recently dawned on me that Bessel filters, despite being listed along with the other common types, are really an oddball that belongs in a different "class", and I'm trying to learn more about ...
13
votes
1answer
506 views

Genetic or evolutionary algorithms for filter design?

For what types of filter design problems might genetic or evolutionary algorithms be useful? What kinds of genetic or evolutionary algorithms are used for DSP problems? Edit: I expanded the question ...
12
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 ...
12
votes
3answers
3k views

“Low-pass filter” in non-EE, software API contexts

I am an experienced software engineer and am working on smartphone sensors. I've taken fundamental EE classes in DSP and am trying to apply my knowledge. I believe that I understand convolution, ...
11
votes
3answers
2k views

Documentation about filters in general

I already posted this question on StackOverflow. I got a suggestion to go for a better answer here. To make the question more concise I'm interested in an introduction to digital filters, any ...
10
votes
3answers
3k views

How to create a distortion compensation filter

I am creating a channelizer that consists of a complex mixer, CIC decimator, and a FIR compensation/decimation filter. The final FIR filter may, if it matters, be implemented as more than one filter. ...
10
votes
3answers
5k views

FIR filter compensator when using a CIC decimation filter

When decimating a narrow-band signal with a cascaded integrator-comb (CIC) filter, which FIR filter is more suitable to compensate the CIC frecuency response?
10
votes
2answers
1k views

Understanding a Bainter Circuit (chebychev filter)

As part of a class in Signal Processing, I am building a 3rd order Chebychev band reject filter. We implement this by using three cascading Bainter circuits. Although not part of the class, I have a ...
9
votes
1answer
228 views

Unit Problem in Designing a Filter for a Given Auto Correlation Function

Given a WSS process with the following Auto Correlation Function: $$ r\left ( \tau \right ) = {\sigma}^{2} {e}^{-\alpha \left | \tau \right |} $$ The Laplace Transform would be: $$ R \left ( s \...
9
votes
2answers
137 views

What is this sinc doing in my LP-turned-HP filter output?

I'm trying to HP-filter a signal by LP-filtering it and subtracting the output from the original filter. To obtain the LP-filtered signal, I backward-forward filtered using a third-order Butterworth ...
8
votes
5answers
722 views

Fields of math needed for digital filter design

I want learn digital filter design. My knowledge of math is at high school level. I can learn math through the Internet. Then, what fields of math do I have to learn?
8
votes
2answers
4k 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
1answer
5k views

Applying FIR filter to data with different sample rates

I have a filter design, and it filters over a 1-2 kHz range. What should I do if I want to apply it to data with a different sample rate than the one for which it was designed? Let's say it consists ...
8
votes
3answers
1k views

Savitzky–Golay filter vs. IIR or FIR linear filter

A traditional IIR / FIR filter (lowpass to remove the high freq oscillations), e.g. moving average, or a Savitzky-Golay filter can all be useful to smoothen a signal, such as an envelope signal: ...
8
votes
1answer
2k views

Oversampling and decimation: What filter to use?

I have a sensor producing (more or less) bandlimited data with a cut-off of about 45Hz, with a roll-off and AWGN. I have an ADC that samples said signal at 800Hz, with a single-pole anti-aliasing ...
8
votes
2answers
845 views

How to design a continuously time-variant digital filter?

I have discrete time series containing signal with smoothly varied frequency over time (called a "sweep"). How can I design a discrete filter (low-pass or band-pass in my case) of a finite length with ...
7
votes
8answers
2k views

Is sound the best way to transmit a signal under water?

Could sound be used in transmitting sound waves under water digitally? Could the sound then be converted by a repeater to transit by radio waves? What other ways can a signal be transmitted other than ...
7
votes
6answers
3k 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?
7
votes
4answers
4k views

Audio EQ Cookbook without frequency warping

The famous http://www.musicdsp.org/files/Audio-EQ-Cookbook.txt offers a set of [real] biquad filter calculation formulas that generally work fine. However, when filter's frequency approaches Nyquist ...
7
votes
2answers
8k views

FIR vs IIR filter

In my filter design, FIR gives order 14 and IIR gives order 8 or 4. so what are the disadvantages of IIR design?
7
votes
1answer
2k views

Choice of Gaussian kernel parameters when lowpass filtering before image resampling?

I need to decimate a signal by a factor of q. More specifically my signal is a 3D "image": $\ I(x_i,y_j,z_k)$, which I need to downsample by a factor of two in the z direction. I want to do lowpass ...
6
votes
1answer
10k views

FIR filter gain

I'm writing a C function to generate bandpass FIR filter coefficients using a simple window method (more details here FIR filters by windowing) The important code snippet is the following (f1 and f2 ...
6
votes
3answers
305 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 ...
6
votes
2answers
3k 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:} ...
6
votes
2answers
2k views

Phase-shift filter design

If a time-domain signal has sharp corners, its frequency spectrum will contain high-frequency components. Truncating the spectrum results in Gibbs' phenomenon. So if you're trying to design an FIR, ...
6
votes
3answers
1k views

What is the ideal FIR length, given a specific pulse length?

I am trying to ascertain what the 'ideal' FIR filter length should be, given the pulse length $T_p$ of a windowed sinusoid in noise that I seek to filter. As parameters into an FIR filter that I ...
6
votes
1answer
140 views

Abs(poles) < 1 by what margin for a stable filter?

I checked the literature for recent algorithms used to design a digital filter that is a minimax approximation of a desired frequency response. All the articles I found work out examples where all the ...
6
votes
1answer
706 views

How to estimate taps required for Parks-McClellan filters

I have some code based on Jake Janovetz's Parks-McClellan (Remez) filter generating code. How can I estimate the number of taps required to build a lowpass filter given requirements for pass band ...
6
votes
1answer
974 views

Complex Least Squares FIR filter design using Levinson' s algorithm

i'm trying to implement an arbitrary IIR filter design. I'm decomposing all the algorithm into smaller pieces that i can test. I currently am on the part where it designs a FIR filter from an ...
6
votes
1answer
1k views

Implementing a Matlab filter to cancel cross talk between two sensors

I have two sensors that have a cross talk between them. I would like to cancel the cross talk. For this I recorded two tracks, where sensor no.1 (called x1) has some input, and sensor no.2 (called x2) ...