I get a Dataframe in Python with multiple maxima and minima, I want to find always the first maxima/minima in the frame and ignore the other ones. The problem is that the data has a lot of noise and the datapoints come at different values, so I can not set a certain numerical threshold value. How do I go about this?
Asked
Active
Viewed 371 times
0
-
Denoising should be certainly done at the very beginning. Could you provide more details about the signal and the noise or just upload some data? How did you get these data, from what kind of sensors? – ZR Han Oct 11 '21 at 23:53
-
It could be detrimental to separate smoothing and peak finding. Being able to incorporate both actions on the same algorithm could be useful – Laurent Duval Oct 12 '21 at 07:35
1 Answers
1
I would try find_peaks, they implement the heuristics you probably would come up with and expose parameters you can tweak accordingly to the characteristic of your signal.
Bob
- 2,348
- 4
- 11
