Skip to main content

findpeaks is for the detection of peaks and valleys in a 1D vector.

Project description

findpeaks

Python PyPI Version License Downloads

  • findpeaks is Python package

Contents

Installation

  • Install findpeaks from PyPI (recommended). findpeaks is compatible with Python 3.6+ and runs on Linux, MacOS X and Windows.
  • A new environment can be created as following:
conda create -n env_findpeaks python=3.7
conda activate env_findpeaks
pip install findpeaks
  • Alternatively, install findpeaks from the GitHub source:
# Directly install from github source
pip install -e git://github.com/erdogant/findpeaks.git@0.1.0#egg=master
pip install git+https://github.com/erdogant/findpeaks#egg=master

# By cloning
pip install git+https://github.com/erdogant/findpeaks
git clone https://github.com/erdogant/findpeaks.git
cd findpeaks
python setup.py install

Import findpeaks package

import findpeaks

Example 1:

X = [9,60,377,985,1153,672,501,1068,1110,574,135,23,3,47,252,812,1182,741,263,33]
out = findpeaks.fit(X)
findpeaks.plot(out)

Example 2:

X = [10,11,9,23,21,11,45,20,11,12]
out = findpeaks.fit(X)
findpeaks.plot(out)

Citation

Please cite findpeaks in your publications if this is useful for your research. Here is an example BibTeX entry:

@misc{erdogant2020findpeaks,
  title={findpeaks},
  author={Erdogan Taskesen},
  year={2020},
  howpublished={\url{https://github.com/erdogant/findpeaks}},
}

References

Maintainer

Erdogan Taskesen, github: [erdogant](https://github.com/erdogant)
Contributions are welcome.
See [LICENSE](LICENSE) for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

findpeaks-0.1.0.tar.gz (6.3 kB view hashes)

Uploaded Source

Built Distribution

findpeaks-0.1.0-py3-none-any.whl (8.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page