Function Reference
This page provides a comprehensive reference of all functions available in the findpeaks library, organized by category for easy navigation.
Core Functions
Function |
Description |
---|---|
Main class for peak detection and analysis |
|
|
Initialize the findpeaks object with detection parameters |
Fit the peak detection model to the input data |
|
Detect peaks and valleys in 1D data |
|
Detect peaks and valleys in 2D data (images) |
|
Apply preprocessing pipeline to the input data |
|
Import example datasets for testing and demonstration |
Visualization Functions
Function |
Description |
---|---|
Main plotting function for comprehensive results visualization |
|
Plot results for 1D data analysis |
|
Plot results for 2D data analysis |
|
Plot persistence diagrams for topology method |
|
Create 3D mesh visualizations |
|
Visualize preprocessing pipeline steps |
|
Plot masking results with customizable font size |
Peak Detection Methods
Function |
Description |
---|---|
Topology-based peak detection using persistent homology |
|
2D topology-based peak detection |
|
|
Traditional peak detection algorithm |
Mask-based local maximum filtering for 2D data |
|
|
Caerus method for financial time series analysis |
Preprocessing Functions
Function |
Description |
---|---|
1D data interpolation with multiple methods |
|
2D data interpolation for x,y coordinates |
|
Resize 2D arrays (images) using OpenCV |
|
Scale data to specified range |
|
Convert images to grayscale |
|
Apply various denoising filters to images |
Denoising Filters
Function |
Description |
---|---|
Lee filter for additive noise reduction |
|
Enhanced Lee filter with improved edge preservation |
|
|
Lee Sigma filter for adaptive noise reduction |
Frost filter for multiplicative noise reduction |
|
Kuan filter for speckle noise reduction |
|
Mean filter for noise smoothing |
|
Median filter for noise reduction while preserving edges |
Utility Functions
Function |
Description |
---|---|
|
Make array elements unique with progress tracking |
|
Union-find data structure for connected components |
Validate parameters for enhanced Lee filter |
Function Categories by Use Case
Quick Reference by Method
Method |
Functions |
---|---|
Topology |
|
Peakdetect |
|
Mask |
|
Caerus |
|
Interpolation |
|
Denoising |
|