Skip to content

Commit

Permalink
Missing README + image for high and low example
Browse files Browse the repository at this point in the history
  • Loading branch information
MonsieurV committed Apr 26, 2018
1 parent 824eea8 commit 84de6e7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Expand Up @@ -227,6 +227,19 @@ Straightforward, simple and lightweight peak detection algorithm, with minimum d

No minimum peak height filtering support.

----------------------------------

# How to find both lows and highs?

Most algorithms detect only local _maximas_. You may want to detect both _minimas_ and _maximas_.

One solution is to invert the signal before feeding it to the algorithm for detecting lows, as suggested by [@raoofhujairi](https://github.com/MonsieurV/py-findpeaks/issues/3).

With two runs, you can then get both lows and highs:

![](/images/highs_and_lows_peakutils_indexes.png?raw=true "High and low peaks with PeakUtils Indexes")

See the related [sample code](/tests/lows_and_highs.py) using PeakUtils.

----------------------------------

Expand Down
Binary file added images/highs_and_lows_peakutils_indexes.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 84de6e7

Please sign in to comment.