Local-maxima peak detection in 1-D signals with prominence filtering. More...


Go to the source code of this file.
Classes | |
| struct | UTILSLIB::PeakFinderParams |
Namespaces | |
| namespace | UTILSLIB |
| Shared utilities (I/O helpers, spectral analysis, layout management, warp algorithms). | |
Functions | |
| DSPSHARED_EXPORT QList< QPair< int, double > > | UTILSLIB::peakFinder (const Eigen::VectorXd &data, const PeakFinderParams ¶ms=PeakFinderParams()) |
| Find peaks in a 1D signal. | |
| DSPSHARED_EXPORT Eigen::VectorXd | UTILSLIB::peakProminences (const Eigen::VectorXd &data, const QList< int > &peakIndices) |
| Compute prominence of each peak. | |
Local-maxima peak detection in 1-D signals with prominence filtering.
SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2026 MNE-CPP Authors
A peak is defined as a sample that is strictly larger than its two direct neighbours. The basic detector locates every such sample in linear time; three classical post-filters then prune the candidate list:
scipy.signal.peak_prominences.The API mirrors scipy.signal.find_peaks closely so MEG/EEG analysis pipelines that already rely on SciPy semantics (cHPI peak picking, ECG R-wave detection, event onset extraction) port to mne-cpp without behavioural drift.
Definition in file peak_finder.h.