Finding local maxima/minima in R

前端 未结 1 691
予麋鹿
予麋鹿 2021-01-02 18:47

I\'ve got a hole bunch of data (10,000 - 50,000 values for each series of measurements) and I\'m interested in automatically identifying local maxima/minima out of the densi

相关标签:
1条回答
  • 2021-01-02 19:12

    My favorite is pastecs::turnpoints . But you're correct that you'll have to do some subjective filtering to distinguish spiky noise from true peaks. One way to do this is to require either the raw or splined data to remain above some threshold for N consecutive values.

    0 讨论(0)
提交回复
热议问题