
Feature | Description |
---|---|
Topology Detection | Mathematically grounded peak detection using persistent homology. |
Peakdetect Method | Traditional peak detection algorithm for noisy signals. |
Mask Detection | Local maximum filtering for 2D image analysis. |
Caerus Method | Specialized algorithm for financial time series analysis. |
Preprocessing | Denoising, scaling, interpolation, and image preprocessing. |
Visualization | Rich plotting capabilities including persistence diagrams and 3D mesh plots. |
- Example Notebooks: Examples
- Blog Posts: Medium
- Documentation: Website
- Bug Reports and Feature Requests: GitHub Issues
-
Topology Method: The most robust detection method based on persistent homology from topological data analysis. It quantifies peak significance through persistence scores and provides mathematically stable results even in noisy data.
-
Peakdetect Method: Traditional algorithm that excels at finding local maxima and minima in noisy signals without requiring extensive preprocessing. Uses a lookahead approach to distinguish between true peaks and noise-induced fluctuations.
-
Mask Method: Local maximum filtering approach specifically designed for 2D data (images). Employs 8-connected neighborhood analysis and background removal for spatial peak detection.
-
Preprocessing Pipeline: Comprehensive preprocessing capabilities including interpolation, denoising (Lee, Frost, Kuan filters), scaling, and image resizing to improve detection accuracy.
pip install findpeaks
pip install git+https://github.com/erdogant/findpeaks
import findpeaks
print(findpeaks.__version__)
# Import library
from findpeaks import findpeaks
# Import library
from findpeaks import findpeaks
# Initialize with topology method (most robust)
fp = findpeaks(method='topology')
# Example data
X = fp.import_example('1dpeaks')
# Peak detection
results = fp.fit(X)
# Plot results
fp.plot()
# Plot persistence diagram
fp.plot_persistence()
- https://github.com/erdogant/findpeaks
- https://github.com/Anaxilaus/peakdetect
- https://www.sthu.org/blog/13-perstopology-peakdetection/index.html
Special thanks to the contributors!