Filter löschen
Filter löschen

removing of a 'three point' spike

1 Ansicht (letzte 30 Tage)
Binu
Binu am 11 Mär. 2021
Kommentiert: Mathieu NOE am 12 Mär. 2021
Hi ,
I have a time series with a few spikes. A spike, in general, is a one point outlier. But as the attached image, one of the spikes in the data set is with three points. So it is not ditected by 'findpeaks'. Can anyone have an idea of how I can remove these three points.
Thank you
  8 Kommentare
Binu
Binu am 12 Mär. 2021
Hi Mathieu,
The noise is my data. I am worring only about the isolated spikes. Out of those, the '3 points' one (shown by the red arrow) that I want to get rid of. There are quite a few of those 3point spikes in my data set, so I really need to improve the script to find them rather than find and replace them one by one.
Thank you
Mathieu NOE
Mathieu NOE am 12 Mär. 2021
Ok
tx for the clarification
I think I have an idea : I would use one the smoothing (or enveloppe) function to create a "baseline" and then make a test condition to find all spikes above this line + slight vertical offset. If any of those point are 3 contiguous points , bingo !

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by