Questions tagged [moving-average]
The moving-average tag has no usage guidance.
103
questions
0
votes
1answer
23 views
How to solve this Laplace integral for an averaging function in an iterative numerical (finite difference) model?
I am trying to implement a mathematical model for vibrational damping described in this article.
They provide an equation for damping force ($F$) as a function of:
a spring constant ($k$)
a damping ...
0
votes
1answer
43 views
Is it possible to specify number of taps and cutoff frequency independently?
When specifying the properties of a moving average filter, is it possible to specify the number of taps and the cutoff frequency?
My guess is no since taps (the number of samples in a moving average ...
1
vote
0answers
53 views
Moving average filter output magnitude in simulink
I was using the Moving average filter provided by simulink. I set the window length equal to 31 samples and i was using a fixed step solver with a step size of
$\frac{1}{(50\times24)}$. I used a unit ...
1
vote
0answers
55 views
Spatial moving average in array antenna processing
In array processing the theoretical spatial response of the array is calculated by doing DFT on sensor locations for some assumed wave number (1/wavelength). The figures below shows the sensor ...
0
votes
1answer
22 views
Difference between the average operation and the application of the equivalent LPF
I would be glad if someone could answer my question. I have a bit stream of data and I want to extract the low frequency component. When post processing the data I can calculate the average value over ...
0
votes
4answers
47 views
Filtering Angular Measurements
I am trying to apply a filter to reduce noise in angular measurements. Since the data comes with noise, the filter needs to be able to handle measurements that are not smoothly progressing; for ...
2
votes
1answer
60 views
How to filter a signal using a bandpass filter consisted of two moving average filters?
I want to filter a PPG signal on a microcontroller. I have limited memory and a was searching for low computational methods. I found the work of Kazuhiro Taniguchi, Earable POCER: Development of a ...
3
votes
1answer
113 views
moving average rounding error analysis
I have implemented a moving average, similar to the Hogenauer Filter, with a reduced number of computation operations. I expect the expected error to behave as the random walk and its STD to be of ...
0
votes
1answer
96 views
How to determine windows size of moving average filter
I've recorded acceleration signal data using an accelerometer attached to vehicle , and I want to calculate the displacement of signal data using double integration or any other methods. I read many ...
0
votes
1answer
71 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 ...
0
votes
1answer
110 views
Moving Average FIR filter coefficients
I am trying to use a FIR filter making software to create a moving average filter and I'm a little confused on what I should put in the coefficients part? I read that the coefficients are always 1 for ...
1
vote
2answers
70 views
Coefficient weights of Simple Moving Average (SMA) on SMA
A simple moving average (SMA: arithmetic mean) is a low-pass FIR-filter. When you cascade 2 SMA's with a window of length $n$, so when you apply the second SMA on the output of the first SMA, and you ...
0
votes
1answer
85 views
Group delay plot of a Moving average filter
I am implementing the moving average filter in Matlab. Using fvtool on this filter, gave the following output curve, is this group delay curve correct?
Edit:
My confusion is regarding the values of ...
1
vote
1answer
89 views
Moving Average Filter's Magnitude Response
I am working on filtering of data using the Moving average filter in MATLAB.
My data is recorded temperature values on the Y-axis and Time(in seconds) on the X-axis
(I'm getting the magnitude response ...
0
votes
1answer
44 views
ARMA Filter Output Stationary and set up?
I have questions regarding ARMA Filters.
Is the output of a ARMA Filter stationary or just wide sense stationary?
I do know that you can obtain an ARMA filter by connecting an MA filter with an AR ...
4
votes
3answers
100 views
Box filter with non integer length
I'm trying to model a sensor system that has an averaging behaviour. The frequency response is almost identical to a box filter and looks roughly like this:
Transferring this into a discrete time ...
2
votes
3answers
113 views
Determining Loss of Information by Taking Average (Mean of Signal)
So basically information is defined by expected value of Shannon's information i.e. Entropy. I am curious how much information is lost if we simply take the average of the sample given to us. I am ...
1
vote
3answers
130 views
Moving average filter magnitude attenuation
I am dealing with a moving average filter which filters power system signals to rid them of noise or harmonics etc. The fundamental or useful component of these signals is centered around 50 Hz or 60 ...
0
votes
5answers
246 views
Amplitude reduction of Simple Moving Average on sinusoid
When a -causal/non-centered- simple moving average filter (arithmetic mean) with length $n$, is applied to a sinusoidal curve with period $p$, and the resulting curve is compared to the original input ...
0
votes
1answer
75 views
Noise Reduction Moving Average FIR
I read that the noise reduction of a moving average FIR can be expressed as the square root of N where N is the length of the filter.
How do you prove? I can't quite get it.
2
votes
1answer
123 views
How to approximate a moving RMS without iterating over N samples for each required output?
I have a signal with a sampling rate of F Hertz.
From it I want to produce an RMS signal, also with F samples per second with a window size of N samples.
Using a standard moving RMS algorithm I must ...
-1
votes
1answer
548 views
Impulse Response of a Moving Average System
According to Discrete Time Signal Processing by Al Oppenheim 3rd Edition, the impulse response of a moving average filter is as below
My question is that shouldn't h[n] be having the dirac delta ...
0
votes
1answer
97 views
Magnitude and phase response and cut-off frequency of a moving average filter
The frequency response of a typical moving average filter of length $N$ is given by $H(\omega)=\frac{1}{N}\frac{\sin(\omega N/2) e^{-j \omega ((N-1)/2)}}{\sin(\omega/2)}$. Firstly, isn't the cut off ...
0
votes
0answers
83 views
temporal smoothing: FWHM of Gaussian kernel vs. window length of moving average
Suppose in one case I convolve Gaussian kernel with FWHM=10 samples. I would like to compare the result with moving average. My question: should I take the moving average window also 10 samples? In ...
1
vote
1answer
181 views
Is it correct to call a Savitsky-Golay filter of degree 0 a simple moving average?
I had this question after seeing that polynomial regressions fit polynomial functions of different degrees to a time-series, since the mean of a time series is a constant and that a constant is also a ...
0
votes
1answer
391 views
Fixed-point Exponential Moving Average filter with given cutoff frequency
I want to implement in fixed point arithmetic an exponential moving average filter, with a specific cutoff frequency for a given sampling rate.
The formula for the filter is
$$
y_n = \alpha x_n + (1 -...
0
votes
1answer
55 views
Differences in moving window rms due to sampling rate
I have a 10 second recorded signal band pass filtered from 100-500 Hz. The original sampling rate is 10 kS. Now I run a moving window RMS with a window length: 10 ms on the signal (10/1000 * sampling ...
1
vote
2answers
94 views
How to discard deviating values from standard deviation and running average
I'm building a inductive vehicle loop detector. By measuring the frequency of a LC-oscillator where the cars will pass over the inductor of the LC-Oscillator.
If the cars pass over the inductor the ...
1
vote
1answer
880 views
Moving average filter for sound in MATLAB [closed]
y[n] = b0x[n] +b1x[n-1]
I have this MA filter in matlab as following
...
0
votes
1answer
202 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 ...
1
vote
0answers
80 views
Moving average and linearization of two piecewise linear systems
I have 2 oversampling ADC's running parallelly, each to process data in a specific range of the input as shown below:
Each ADC can process only half cycle range of a sine wave. Each ADC adds its own ...
1
vote
1answer
511 views
Is there a clever way to implement cascaded moving average filters?
I'd like to effeciently approximate a gaussian filter's step response using cascaded moving average filters.
I know about recursive moving average, but is there some clever algorithm to cascade them ...
0
votes
2answers
87 views
How do you properly organize data to compute multiple (independent) recursive filters at the same time taking advantage of SIMD instructions?
I'm processing multiple (independent) Exponential Moving Average 1-Pole filters on different parameters I have within my Audio application, with the intent of smooth each param value at audio rate:
<...
0
votes
1answer
117 views
ARMA & MA methods: how do you know the error terms?
Reading the ARMA model for the first time, and I'm confused.
Let's say I have a time series
x = [1, 2.1, 2.9, 3, 4.1]
According to the ARMA model, $X_t$ is a ...
2
votes
2answers
1k views
Moving Average for Notch filtering
I have a periodic signal(ECG) with period of ~1 seconds. It does not have features that are shorter than 0.04 seconds. For removal of 60Hz, I thought instead of implementing a notch filter, doing a ...
1
vote
1answer
324 views
Moving average algorithm that conserves integral
Suppose I have point array $y_i$ of size $N$. How to implement moving average algorithm that conserves quantity
$$
I = \sum_{i=1}^{N}y_i
$$
NOTE: I don't want time shift so I would prefer to use ...
2
votes
1answer
131 views
A general conceptual understanding of moving average
I have a conceptual question here. I understood how to calculate a Moving Average(MA).
For example :
x(n) = 0, 1, 2, 3, 4, 5
MA = 0, 1/2, 3/2, 5/2,7/2, 9/2, where for calculation of the MA we only ...
5
votes
6answers
596 views
Optimal $ n $ -th Order IIR /AR Approximation of a Moving Average Filter
I would like to approximate a moving average filter with an IIR filter of much lower order than the tap-length of the moving average filter. Optimality shall refer to the $L_2$ norm of the impulse ...
2
votes
2answers
436 views
Mean delay for a M tap harmonically weighted filter
I am trying to derive the mean delay for $M$ filter taps harmonically weighted:
$$y[n] = \frac{M\,x[n] + (M-1)x[nā1]... + 1 \cdot x[nāM+1]}{\tfrac12 M (M + 1)}$$.
For a uniformly weighted filter, I ...
1
vote
3answers
1k views
Denoising a signal
I'm starting hydraulic experiments, where I'd have to measure velocity in an unsteady flow with a device called Acoustic Doppler Velocimeter. In DSP terms, I'd have a nonstationary signal in a shape ...
0
votes
1answer
326 views
Sampling multiple sensors at different rates
I have a question regarding how best to sample data from multiple sensors when they are all updating at different/changing rates. I am new to data acquisition so please bear with me. For my Master's ...
0
votes
2answers
211 views
How to make the impulse response sparse? How does one know that the channel is sparse?
I am new to sparse channel estimation algorithms and reading research articles. One such paper is blind sparse channel estimation using a modification of the BOMP technique titled, "Blind Acoustic ...
-1
votes
1answer
296 views
Should I use window or any filtering to average my data?
I have 80 seconds of data and I have to score my data by taking the average or median (or some other method) every 10 seconds. What's the best way to do this ? Should I just use a regular rectangular ...
0
votes
2answers
49 views
Confusion regarding model order and lags
I have similar questions as the one asked in these posts: https://stackoverflow.com/questions/47083890/fir-filter-length-is-the-intercept-included-as-a-coefficient-matlab/47085339?noredirect=1#...
4
votes
1answer
183 views
Underdetermined deconvolution of windowed output
Consider a discrete 'blurred' output $h[t]$ given by the convolution of filter $f[t]$ and signal $g[t]$. This question considers recovering $g[t]$ from a window (subset) of $h[t]$. This causes the ...
5
votes
1answer
256 views
Model Validation After Estimation for System Identification Task (Assistance with MATLAB Code)
QUESTION: I want to determine how well the estimated model fits to the future new data. How do I validate the estimated model...what is the procedure? After system identification, how to do model ...
4
votes
1answer
3k views
Lowpass : What is wrong with average filtering?
The question is : What is wrong with averaging as low pass filter ?
The details :
I want to lowpass filter a signal to downsample it.
The constraints are : I have no RAM available and I work in ...
1
vote
1answer
176 views
Why dft of moving average impulse response has 0 angle
I wanted to visualise angle and magnitude of moving average DFT. I used python3 for that:
...
0
votes
3answers
3k views
Group delay of moving average filter
I have implemented a moving average filter (in Python) where I fill a list with values and average them. When new values arrive the oldest will be deleted.
Now I am wondering how much delay I get ...
1
vote
0answers
38 views
Multitapering in time domain to obtain smoother filtered signals?
Suppose we want to approximate the instantaneous power $z(n) = |y(n)|^2$ of the discrete-time signal $y(n)$, where $y(n)$ is the result of filtering $x(n)$ with a given window $h(n)$, $y(n) = x(n) \...