Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [smoothing]

Smoothing a signal or data set approximates the data to reveal patterns and exclude noise, fine-scale structure and rapid changing phenomina.

Filter by
Sorted by
Tagged with
2 votes
1 answer
84 views

Smoothing Filter on Signal

With python scipy I am processing (in real time) chunks of 250,000 each a CW pulsed beep radio signal in python from a RTLSDR. The signal after some basic processing and decimation is 9995 samples ...
Al Grant's user avatar
  • 121
0 votes
1 answer
41 views

Equalizing Standard Deviations of Sequences through Smoothing

I have several sequences with varying standard deviations, and I want to smooth them so that each sequence has approximately the same standard deviation, which I've predetermined. I'm open to any ...
Vlad's user avatar
  • 225
0 votes
0 answers
42 views

Smoothing sensor signal with discontinuities on DSP for obtaining signal derivative

I am trying to implement PID control on a sensor signal that has many discontinuities in it. Due to these discontinuities, the differentiated signal does not provide a meaningful or useful signal I ...
Mr Phase Locked Loop's user avatar
1 vote
1 answer
62 views

measuring delay introduced by filter

I am trying to measure the delay introduced by smoothening filters to my data, including a double-exponential smoothening filter. I run my series data through this function: ...
dnclem107's user avatar
1 vote
1 answer
44 views

Identify the smoothing filter from boundary pattern

I have a collection of discrete timeseries, which has already been smoothed temporally. However, the smoothing operation does not consider the boudary properly, and results in obvious distortion. I ...
Vapor's user avatar
  • 11
0 votes
0 answers
42 views

Smoothing filters on levels of a time series versus discrete derivative

I have some mortgage data and I am trying to detect when a borrower refinances. To do so, I use a moving average filter to smooth my data and then I run a Bai and Perron (1998) structural break test ...
fairlife4life's user avatar
5 votes
3 answers
1k views

Smooth envelope of an aperiodic signal

I have a signal that looks like this: Red line is the function I'd like to obtain somehow. Everything <= -60 is basically absent data (i.e. not low signal). If I understand correctly, Hilbert ...
tkroman's user avatar
  • 163
2 votes
0 answers
35 views

Smoothing clicks when scrubbing/seeking through the audio

I have a buffer of N samples from which I'm playing a loop of L samples (L <= N) starting from sample S. The reading position is calculated as (S + P) % N where P is current playhead position which ...
Vladyslav Lytvynenko's user avatar
0 votes
2 answers
106 views

Filter Recommendation for Smoothing a Specific Signal

I have data like the following: ...
Raj's user avatar
  • 3
1 vote
0 answers
121 views

Approximating fractional-octave Gaussian smoothing with non-causal variable-width IIR filters

I am trying to implement fractional-octave smoothing of amplitude response data with approximated Gaussian filters, as briefly discussed in this AES paper. Unfortunately, no implementation details are ...
butch_warns's user avatar
0 votes
0 answers
95 views

Which audio smoothing algorithm has the lowest latency?

I am working on an audio smoothing project. My inputs are from a record scratching MIDI controller, and I am trying to produce a smooth output (the raw data creates noisy audio). I'm using a simple ...
The Impossible Squish's user avatar
1 vote
0 answers
69 views

Tap and Impulse Response of MATLAB Filter

This is a simplified version of the Savitzky-Golay MATLAB functions (sgolayfilt, sgolay). ...
Moses Kim's user avatar
  • 175
5 votes
3 answers
128 views

The Effect of the Finite Radius of Gaussian Kernel

Page 168 of Digital Image Processing, Global Edition says: we know that the values of a Gaussian function at a distance larger than 3𝜎 from the mean are small enough that they can be ignored. If we ...
hasanghaforian's user avatar
4 votes
1 answer
148 views

The Effect of the Order of Downsampling and Smoothing on the Output

How do I prove or disprove: Smoothing an image with a 3x3 filter using full convolution and then downsampling an image by 2 produces the same result as downsampling an image by 2 and then applying ...
Kumar's user avatar
  • 141
1 vote
0 answers
66 views

Fourier Derivative of Discrete Values in Python

I am attempting to find the time derivative of physical system measurements in the Fourier domain. The system can be modeled as an ODE and has a periodic solution. $$\frac{d}{d t} y{\left(t \right)} = ...
omar's user avatar
  • 11
2 votes
1 answer
158 views

Approaches to work around differing signal lengths when using Kalman filter

I have a set of vector valued signals $\boldsymbol{y}_{1:T}$ where each $\boldsymbol{y}_k \in \mathbb{R}^{v_k}$. Each signal is potentially of different dimensionality. I'd like to apply filtering and ...
FakeBrain's user avatar
  • 123
1 vote
1 answer
223 views

low pass filtering for smoothing

I am using the following code in Matlab, from some source (sadly I cant remember). The code is used for smoothing signals using a low pas filter. ...
jamshidbing's user avatar
1 vote
1 answer
394 views

Creating Triangle Filters for Smoothing using Python

The 'binning' process consists in summing the energies (squared magnitude) within groups of adjacent FFT values. This will give you the total energy in a set of disjoint frequency bands. A more ...
Aisha Nasir's user avatar
0 votes
0 answers
160 views

Standard method of smoothing (amplitude envelope) of continuous wavelet transform

My basic question is, "What is the standard way to post-process/smooth a continuous wavelet transform result to measure the wavelet's activation at a specific frequency?" When using wavelets ...
Sam Lapp's user avatar
  • 101
3 votes
2 answers
761 views

Applying a window to a signal

How can I Gaussian or Bartlett window to a signal? On the other hand, is it a good way of smoothing signals? If not what are the differences between smoothing and windowing?
Kanan Suleyman's user avatar
2 votes
1 answer
336 views

What is the outcome of applying a derivative on X and Y for an image? and Other Gaussian Questions

I've been diving into smoothing kernels and I came up with a lot of questions that I haven't been able to find in the internet. If you can I'd appreciate the help :) (Capitals and bold were used for ...
user avatar
6 votes
3 answers
823 views

How to Deal with Outliers in Measurement of a Simple Model of Kalman Filter

I am trying to find the one-dimensional velocity of a car based on position measurements, similar to the Wikipedia article. The car moves at almost constant speed and I am mostly interested in ...
Crenguta's user avatar
0 votes
0 answers
36 views

Signal filtering with physical limitations and estimated STD

I have a prediction mechanism that predicts some signal value. Generally the prediction look like this: The are some ranges of systematic error and I cannot do anything with this. But in many points ...
Nikolai's user avatar
0 votes
0 answers
340 views

Spectrum Smoothing

I recently stumbled upon this GNU Radio flow graph which smooths spectrum. Block parameters are seen in image attached below. Also visually results doesn't change if I take out "Keep 1 in N" ...
Aladins's user avatar
  • 33
0 votes
0 answers
265 views

How to measure smoothness of a signal

Lets say I have two signals with a different number of data points - a step function and a smooth spline as you can see below. What is mathematical operation I can use to quantify the "smoothness&...
Konvictus's user avatar
1 vote
1 answer
40 views

Constrained interpolation/smoothing of multi-dimensional time series

Consider an $N$ dimensional time series $x_i(t),~i\in\{0,1,\cdots, N-1\}$ where $x_i(t)$ is smooth. It turns out that for all $t$: $x_i(t)>x_{i-1}(t)$. The multi-dimensional series is sampled at ...
rhz's user avatar
  • 457
0 votes
0 answers
179 views

Peak detection in noisy waveforms

I have a set of 1-dimensional time-series, a subset of which contain either one or two peaks, and the remainder of which are pure noise. I've smoothed these data by ...
10GeV's user avatar
  • 123
0 votes
0 answers
96 views

Is there a technical term for smoothing or flattening the floor of an amplitude envelope?

I am working with the speech envelope, and I have been trying to make it act a little more like a bilevel signal by exaggerating the peaks and flattening out the floor. I detrended and smoothed my ...
stck8888's user avatar
0 votes
0 answers
45 views

Is there any complex-valued function used to smooth signals?

To obtain a smoother signal, we usually convolve the original signal with a real-valued kernel function, such as Gaussian and Top-hat. Is there any complex-valued kernel function to smooth signals?
Wang Yun's user avatar
  • 124
0 votes
1 answer
188 views

Calculate moving RMS with exponential averaging

This is moving RMS, now how to add exponential averaging in this df['signal'].rolling(21*24*60).apply(lambda x: np.sqrt(x.mean()))
MAK7898's user avatar
  • 11
-1 votes
1 answer
53 views

Data smoothing in temperature measurements from MLX90614 BCC IR sensor

I am trying to measure temperature with the MLX90614 BCC IR sensor for my project, and I am having problems with my precision requirement. I had taken data for 1 second then took the mean of these ...
Layberk's user avatar
0 votes
0 answers
464 views

Choose the right Sigma for Gaussian filter

I have the following problem: I have a time series with counted data. I now want to smooth it using a Gaussian low-pass filter. Is there a method to determine the sigma value? The window should have a ...
faine10's user avatar
0 votes
0 answers
138 views

Box function signal filtering in python

I am trying to produce a box function filter of a signal in python. I expected to find this functionality in scipy.signal, but I can't find any solutions. What I am trying to do is this. I have 2 ...
connor449's user avatar
  • 115
0 votes
1 answer
634 views

Smoothing power spectrum by convolution with boxcar function

I am trying to smoothing a signal's power spectrum by convolving the spectrum with a boxcar function in frequency domain. However, the result is obviously not what I expected: original two frequency ...
sofname's user avatar
  • 155
0 votes
0 answers
45 views

Smoothing peak spectra in time domain

I would like to smooth amplitude spectra of signals around their peak frequencies. I could perform FFT, find the peak frequency, and smooth around the peak in frequency domain, then inverse FFT back ...
sofname's user avatar
  • 155
4 votes
1 answer
502 views

Deriving a Kalman Filter Equation for a Linear Gaussian Filtering Model with Non Zero Mean Noise

I am trying to answer an exercise question from the book Simo Sarkka - Bayesian Filtering and Smoothing. The question is: Does anyone know if there is a resource that has the solutions for this book?
Econstudent's user avatar
3 votes
1 answer
4k views

The Effect of the Standard Deviation ($ \sigma $) of a Gaussian Kernel when Smoothing a Gradients Image

I am trying to understand why smoothing an image with a gaussian kernel of different sigma values and then computing the gradients of the smoothed image leads to "thicker" trails. In the ...
calveeen's user avatar
  • 283
1 vote
1 answer
2k views

What is the point of smoothing an FFT or spectral density plot, and how does that affect the noise floor?

It appears that smoothing the FFT or spectral density plots of a noisy signal is a common practice. I see that common tools like MATLAB and Python have functions built in to their FFT tools to do just ...
benbald's user avatar
  • 81
0 votes
1 answer
205 views

Is it applicable to implement a cascaded moving average filter with variable window on real-time?

I am using a 3-pass cascaded moving average filter for smoothing noisy data. I applied some optimization algorithms to determine the optimal length of the MAF window. For different amplitudes of data ...
Ahmed Mahmoud's user avatar
0 votes
1 answer
96 views

Error introduced by smoothing filter at the end of a processing block

I'm running analysis on a multichannel audio signal and due to the size have decided to process it in blocks (my computer doesn't have enough memory to process it in one go). Some of the data produced ...
Molem7b5's user avatar
6 votes
1 answer
294 views

A Simple Algorithm to Filter / Smooth / Denoise a Noisy Staircase Graph

Is there a way to remove the noise and smooth the graph into a staircase graph.
User's user avatar
  • 63
0 votes
1 answer
228 views

Possible to get transfer function coefficients from window?

I am hoping to use scipy.signals.filtfilt() to smooth some signals in Python, and wanted to build the filter based on a window like a hanning window or whatever. E....
eric's user avatar
  • 103
5 votes
3 answers
154 views

Reversing the Order of Operators for Edge Detection?

Usually, for edge detection, we perform smoothing and then pass it through difference filter. What if application of difference filter happens first and then smoothing. How the math behind the same ...
Nikhil Singh's user avatar
0 votes
1 answer
26 views

I want to get tilt sensor value for a given time t_0, but the tilt sensor data points are discrete. How do I interpolate between the discrete points?

I have 3-dimensional readings from a tilt sensor (specifically these are rotational angles about X, Y, and Z axes) over time. Let's call these angles S. I want to infer S at a specific time t_0, but ...
wtwtwt's user avatar
  • 103
1 vote
2 answers
1k views

How to properly smooth the phase of a spectrum (or any unit-complex function)

I want to smooth the phase of a measured (transfer) spectrum without destroying unit-complexity of the phase factor. Suppose $$f:\mathbb{R}\to \mathbb{C}\qquad , \qquad f(\omega)=r(\omega)\cdot {\rm e}...
oliver's user avatar
  • 266
-1 votes
1 answer
836 views

Smooth signal with Hanning

I have an acceleration record and i want to smooth it's spectrum by using a hanning window with Bandwidth=0.5 Hz. How could i do that? Example in python/matlab will be appreciated!
John_Seism's user avatar
1 vote
2 answers
811 views

Confused in Smoothing a signal in the Frequency domain

First of all i am new in DSP, so i have no solid education in the field. I have convert my time domain acceleration-seismic data to frequency using DFT and i am trying to smooth the DFT data, in ...
John_Seism's user avatar
0 votes
3 answers
762 views

How do you do signal averaging on a realtime data?

Smoothing algorithms implemented by me Exponential smoothing - https://www.openprocessing.org/sketch/771368 Moving Mean - https://www.openprocessing.org/sketch/540696 For example - a1+a2+a3+a4+... ...
Greyfrog's user avatar
  • 101
1 vote
2 answers
140 views

Smoothing a discrete function with point wise variances

In Stark's Introduction to numerical methods [1970] it suggests fitting local polynomials to smooth discrete data before the Fourier transform using least squares minimisation. This gives the ...
Goods's user avatar
  • 111
0 votes
1 answer
88 views

Can you predict how long a discontinuity will take to reach its target if it is low pass filtered at a certain frequency?

Let's say you have a signal that relatively slowly rises from 0 to 1, then suddenly from one sample to the next drops back to 0, creating a sharp discontinuity. Let's say you run it through a one pole ...
mike's user avatar
  • 533