Tarik Mokafih
Tarik Mokafih

Reputation: 1257

Filtering and smoothing algorithms

I have this raw data set : enter image description here

I want to filter, in order to get the smooth curve (in this example the noise will always decrease the signal, and rarely increase it)

I implemented a kmean based algorithm to filter it and had this: enter image description here

But still not smooth enough, because in the raw data we can see clearly the overall curve shape, but in filtered data this shape is damaged.

I tried using moving average and Savitzky-Golay filtering but both give results worst than my kmeans based algorithm.

Do you have any ideas about algorithms best suited for this kind of noise and signals. any matlab examples are welcomed.

Thank you

Upvotes: 1

Views: 802

Answers (1)

David Eisenstat
David Eisenstat

Reputation: 65508

Median filtering is a technique used to remove similar kinds of noise. Since downward noise is much more likely than upward, you could use the 75th percentile (or what have you) instead of the median on each window.

Upvotes: 2

Related Questions