findpeaks is for the detection of peaks and valleys in a 1D vector.
Project description
findpeaks
- 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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for findpeaks-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62d6ce6e65e22565a23499ed9824b89b2ce40f44bad15a4a3dd158d1eff2b4c8 |
|
MD5 | 4c29e79399d907d3166d06157dd30ce7 |
|
BLAKE2b-256 | 5cfc78fcfe68e6089812f9dd9269e05efc3a635df06a8df7bcec3ee0c2af397a |