README.md rev. 10 Feb 2023 by Luca Cerina. Copyright (c) 2023 Luca Cerina. Distributed under the Apache 2.0 License in the accompanying file LICENSE.
Automatic Multiscale-based Peak Detection (AMPD)
ampdLib implements automatic multiscale-based peak detection (AMPD) algorithm as in An Efficient Algorithm for Automatic Peak Detection in Noisy Periodic and Quasi-Periodic Signals, by Felix Scholkmann, Jens Boss and Martin Wolf, Algorithms 2012, 5, 588-603.
Python required dependencies
- Python >= 3.11
- Numpy
- Scipy for tests
Installation
The library can be easily installed with setuptools support using pip install . or via PyPI with pip install ampdlib
Usage
A simple example is:
peaks = ampdlib.ampd(input)
AMPD may require a lot of memory (N*(lsm_limit*N/2) bytes for a given length N and default lsm_limit). A solution is to divide the signal in windows with ampd_fast or ampd_fast_sub or determine a better lsm_limit for the minimum distance between peaks required by the use case with get_optimal_size.
Tests
The tests folder contains an ECG signal with annotated peaks in matlab format.
Contribution
If you feel generous and want to show some extra appreciation:
Metadata
Release files for ampdLib 1.1.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ampdlib-1.1.7.tar.gz | 10.3 kB | Without provenance | Details for ampdlib-1.1.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ampdlib-1.1.7-py3-none-any.whl | Python 3 | none | any | Details for ampdlib-1.1.7-py3-none-any.whl |
Total release size: 21.1 kB
Release files / ampdlib-1.1.7.tar.gz
| Download URL | ampdlib-1.1.7.tar.gz |
|---|---|
| Size | 10.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
61b6127c19416cb17be50e8891014797acbbca8b65bd11ae6e478fa0faa5246e
|
|
BLAKE2b-256 checksum How to use checksums |
a7d4a38ce3f4c6d3e3bcc68fdc750ec7d53f098a666cd4c33c4316904fd213db
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.11
|
Release files / ampdlib-1.1.7-py3-none-any.whl
| Download URL | ampdlib-1.1.7-py3-none-any.whl |
|---|---|
| Size | 10.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
692c04e2e239586399fa4b6ec4fa5c6619c30b3229607bfe97ab7ebbd8a83a26
|
|
BLAKE2b-256 checksum How to use checksums |
2cbe908ed2ebbe713b79e7f6e4bcfe2ed50967efe6b5966f39a65846b59c49d3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.11
|
Security for ampdLib 1.1.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.