# Questions tagged [lowpass-filter]

A low-pass filter is an electronic filter that passes low-frequency signals but attenuates signals with frequencies higher than the cutoff frequency.

546 questions
Filter by
Sorted by
Tagged with
53k views

### low pass filter and FFT for beginners with Python

I am new to signal processing and especially to FFT, hence I am not sure if I am doing the correct thing here and I am a bit confused with the result. I have a discrete real function (measurement ...
51k 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 ...
3k views

### What is the physical interpretation of Lowpass/Highpass filtering?

In Image/Signal processing context we have seen/we know that if there are say 4 samples and if we take an average of those 4 samples, then we say that the result sample is a low pass filtered output ...
2k views

### How can I lowpass filter by only reducing peak data?

I have a 2D image, which I want to lowpass filter, with these constraints / quality metrics: I can not "add" light to the image, so each pixel in the result should be <= the corresponding pixel in ...
2k views

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

I have found that this is a simple, but bad lowpass filter: $$y(n) = x(n) + x(n-1)$$ However, I can't understand why it is a lowpass filter. What is its cutoff frequency?
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 (...
6k views

### Differences between filtering and polynomial regression smoothing?

What are the differences between classical low-pass filtering (with an IIR or FIR), and "smoothing" by localized Nth degree polynomial regression and/or interpolation (in the case of upsampling), ...
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 ...
5k 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:} ...
7k views

### How should a moving average handle missing data points?

I'm writing a program that averages the user's weight across different days. I'm planning to use a 5-point moving-average (current day, two before and two after). Sometimes, a data point is missing ...
6k 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: ...
866 views

### Filtering of streaming audio

Given something like 103 data points ($N=103$), a DFT will give back 103 frequency values. Then to do something like filtering the high frequencies involves setting the high frequency values from the ...
157 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 ...
28k views

### How does a low-pass filter programmatically work?

I have been working on a simple low pass filter for < 100 Hz metering in my application. But so far, I am struggling with the theory behind it all. It's cool that I got it working, but I'd really ...
5k views

### Low pass filtering on short int (16 bit PCM) samples

I am writing software for processing audio given as 16-bit PCM samples. The first stage of the processing involves calculating the energy (or total variation) in a certain frequency range (above a ...
2k views

### Filter message from noisy voice signal

I am trying to decipher a message hidden within a very noisy audio file(.wav)(I think it is white noise with an additional low drone). The message is a six digit number. I have not have any further ...
15k views

48k views

### Apply Low pass Butterworth filter in Python

I want to use a low pass Butterworth filter on my data but on applying the filter I don't get the intended signal. Here is the dummy code: Signal A: ...
9k 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?
12k views

### Savitzky-Golay filter parameters

I am trying to smooth a series of data in order to obtain a continuous function that could represent that given data set. It came out that the Savitzky-Golay method could be a good way. Now, I don't ...
182 views

### Using oversampling to increase resolution of a DC-signal as input

Currently I'm working on a project which uses oversampling to increase the resolution of a 12 bit ADC to a maximum of 16 bits. My goal is to fully understand the theory behind oversampling and why it ...
12k views

### Can you turn a square wave into a sine wave using a low pass filter?

And if it could, would it make the sound of the square wave thinner than before because of losing its harmonics?
4k views

### How to smooth a signal?

The easiest way to smooth a signal is by moving window average. A more advanced way is to use a Savitzky-Golay filter. From wikipedia: The main advantage of this approach is that it tends to ...
4k views

### Best way to resample a signal (image)?

I have an original image $\ I(x_i,y_j)$ where $\ x_i = i*\Delta x, 0<= i < n_i$ and $\ y_j = j*\Delta y, 0<= j < n_j$ I am trying to implement a function that resamples the image ...
766 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 ...
7k views

### Single-pole IIR low-pass filter - which is the correct formula for the decay coefficient?

A single-pole IIR low-pass filter can be defined in discrete time as y += a * (x - y), where y is the output sample, ...
936 views

### Low pass fir filter with non-unity gain

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).
717 views

### What are the characteristics of a “good” smoothing convolution kernel?

At work we were smoothing a signal by convolving with either f1=[0.2000 0.2000 0.2000 0.2000 0.2000] or ...
5k views

### Why is the median filter called 'edge-preserving'?

I want to know about median filtering. Recently, I read that it is best for preserving edges. But how does it preserve edges? I need complete knowledge of median filters. Why it is non-linear filter ...
848 views

### Fast Integer 8 Hz 2nd Order LP for Microcontroller

I need an 8 Hz 2nd order LP filter. It does not have to be terribly accurate but it should be 2nd order-ish. Performance is much more important. My sample rate at the moment is ~9.5 kHz. The filter ...
10k views

### How is the lowpass to bandpass transformation derived?

I'm using a lowpass to bandpass filter transformation: $$s \leftarrow Q \left( \frac{s}{\omega_0} + \frac{\omega_0}{s} \right)$$ Based on the wiki article: http://en.wikipedia.org/wiki/...
8k views

### Low pass filter algorithm origin

I have been doing some research, because I used this algorithm that's very spread in the web: y += a * (x - y) or ...
1k views

### 2-d circularly symmetric low-pass filter

For a square pixel grid, the ideal 2-d low-pass filter with a horizontal and a vertical cut-off angular frequency $\omega_c$ in radians has an impulse response (kernel) $h_{\small\square}(x, y)$ that ...
2k views

### Discrete Time Fourier Transform (DTFT) for an unstable system (Ideal Low Pass Filter)

The Dirchlet conditions state that if the signal is absolutely summable then it the DTFT of the signal definitely exists. This is a sufficient condition but not necessary condition. There are ...
1k views

### What type of low-pass filter to use for gyroscope filtering in control application?

I am using a gyroscope to generate a feedback signal that drives a motor to resist rotation, just as in a camera gimbal. The gyroscope is sampling at 32 KHz with a bandwidth of 8 KHz, and my control ...
2k views

### Understanding audio downsampling code (JavaScript) and adapting to a different ratio

I inherited responsibility for some audio downsampling code that I don't fully understand: ...
333 views

### Frequency response of a rolling linear regression

I am looking for a way to characterise the frequency response of the slope from a linear regression. We are exploring the effect of window length of the regression to the magnitude of the slope of the ...
242 views

### New to DSP and having trouble filtering data

I am trying to make program in matlab that counts the number of times the accelerometer was lifted up and down (a rep counter for exercise). Basically my phone is getting accelerometer data on all ...
4k views

### How to separate a low amplitude signal of same frequency but different phase

I have a signal consisting of two sine waves of same frequency but have different phase (and also a lot of HF noise). Their amplitudes differ by about $120\textrm{ dB}$. How to I go about separating ...
4k views

### Removing values from FFT result same as filtering?

I don't quite understand why the textbooks say it is impossible to implement an ideal low pass filter. If I was to take the FFT of a discrete signal x[n], with Matlab's fft function I'd be returned ...
932 views

### What is the name of this digital low pass filter?

I found this digital filter in code I am working on. It is a low pass filter. In the code it is called an "alpha filter", but it is not the same as the alpha filter mentioned here. I post the ...
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. ...
508 views

### Shannon interpolation formula for downsampled data with an “almost ideal” low pass filter

Let $x[n]$ be a discrete time signal with DFT given by $X(f)=\sum_n x[n]e^{-2\pi inf}$ supported on $[-1/2M,1/2M]$ with $f\in[-1/2,1/2]$. I can then down-sample to get $y[n]:=x[nM]$. Then, let \...
2k views

### Smoothed Square Wave

new here and probably pretty unexperienced compared to the rest of you. This should be simple enough but just wanted some clarification. I'm trying to model an analog square wave oscillator with C. ...
1k views

### Low Pass Filter Artifacts

I have created a Low Pass filter (I am trying to understand the topic of DSP, and it's hard.. But moving along with samples, books and a nice post on Stack Overflow). I am saving the 'output' to a ...
18k views

### matlab How to design lpf\bpf\hpf without builtin functions

related to Filtering voice signal from randomly added frequencies I'm trying to create a simple low pass filter but i'm not sure what is wrong. my code: ...