Questions tagged [moving-average]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
4
votes
1answer
1k views

How does this “simple filter” work?

I'm new to DSP, and I'm using this basic "1-pole LPF" Param Smooth filter which "smooth" param when I change it. The code is pretty simple: ...
18
votes
2answers
37k views

What is the cut-off frequency of a moving average filter?

I need to design a moving average filter that has a cut-off frequency of 7.8 Hz. I have used moving average filters before, but as far as I'm aware, the only parameter that can be fed in is the number ...
6
votes
3answers
16k views

Moving average vs. Moving median

I have read in many places that Moving median is a bit better than Moving average for some applications, because it is less sensitive to outliers. I wanted to test this assertion on real data, but I ...
5
votes
6answers
340 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 ...
0
votes
1answer
3k views

Exponential average with time constant of slow, fast and impulse

I have been studying about exponential average. There are enough explanations about this at Internet, but they do not explain about the time constant. I have one channel with a $T$ seconds time ...
3
votes
1answer
1k views

Equivalent 2D mask of moving-average

I have the moving-average mask as mask = [1 1 1; 1 1 1; 1 1 1]; and then I compute the convolution 3 times ...
3
votes
5answers
3k views

What is the transfer function of a moving average?

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 ...
2
votes
1answer
126 views

Terminologies - lags, order in time series model

I am facing some difficulties with the terminologies - lag ($p$) and sequence length (number of data points) (N) used in time series model such as Moving average and Autoregressive model. Considering ...
2
votes
1answer
85 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 ...
1
vote
2answers
719 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
0answers
49 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 ...
0
votes
1answer
135 views

How to Apply Least Squares Estimation for Sparse Coefficient Estimation?

The model is expressed as, $$y(n) = \sum_{i=0}^{p-1} r(i) x(n-i) + v(n) \tag{1}$$ where $\mathbf{r} = [r_1,r_2,\ldots,r_p]^T$ is the sparse channel coefficients of length $p$, $\mathbf{x} = [x_1,x_2,....
0
votes
1answer
119 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 ...