Suppose I have a set of points as shown below
1
smoothing
- Baltazar
- Posts: 0
- Joined: Thu Jan 01, 2004 12:00 am
smoothing
any low pass filtering will "smooth" your serie. Moving average being one of them.
Do you have any other requirements? (like causality for example, compact spectrum...)
If you have matlab, thank to fourier transform, you can do it very quick
Do you have any other requirements? (like causality for example, compact spectrum...)
If you have matlab, thank to fourier transform, you can do it very quick
Short Oil, Long Vinegar: Salad spread
- FDAXHunter
- Posts: 0
- Joined: Thu Jan 01, 2004 12:00 am
smoothing
I think he's looking for a non-causal filter, because there does seem to be a forward looking / neighbor effect that he desires. But a centered moving average or any other smoothing method will do, like Baltazar said.
The Figs Protocol.
- Baltazar
- Posts: 0
- Joined: Thu Jan 01, 2004 12:00 am
smoothing
then that mean that your smoothing element should be of integral 1
In your case the smoothing element is just [1/2 1/2] ie you do an average of two points. You could use [1/3 1/3 1/3], a gaussian, hamming, haning, blackman,some exponential, stuff like this [1/8 2/8 5/8 0].
To be sure your filter is causal, it has to be filter(x)=0 for x>0 (it actually depends wich convolutio operator you use, some convolve with the reversed filter).
Maybe all of this does not help, then just look for casual low pass filtering, it should cover your need.
In your case the smoothing element is just [1/2 1/2] ie you do an average of two points. You could use [1/3 1/3 1/3], a gaussian, hamming, haning, blackman,some exponential, stuff like this [1/8 2/8 5/8 0].
To be sure your filter is causal, it has to be filter(x)=0 for x>0 (it actually depends wich convolutio operator you use, some convolve with the reversed filter).
Maybe all of this does not help, then just look for casual low pass filtering, it should cover your need.
Short Oil, Long Vinegar: Salad spread