Skip to content

Instantly share code, notes, and snippets.

@ohjho
Last active August 3, 2021 04:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ohjho/01f87de354a2c3ba531c32818703410a to your computer and use it in GitHub Desktop.
Save ohjho/01f87de354a2c3ba531c32818703410a to your computer and use it in GitHub Desktop.
Notes for Peak Detection in Time Series

Intro

peak signal detection in a time series is non-trivial. It's simple if a window is defined as in this simple one-line solution in numpy or using scipy.signal.find_peaks however, to do this with noisy data without defining a window this becomes very tricky very quickly per here and here

using scipy with defined window

Plotly has a very simple example here and this blog post does an excellent job of explaining now it works.

alternatives with defined window

this extensive study with an accompany github repo which recommends peakutils

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment