aphalo / photobiology

Package ‘photobiology’ defines a system of classes for storing spectral data and accompanying methods and operators. This is the core of a suite of R packages for photobiological calculations.
4 stars 1 forks source link

Alternative algorithms for peak detection in `find_peaks()`. #30

Open aphalo opened 8 months ago

aphalo commented 8 months ago

Currently peaks are detected as local maxima. Alternative approaches exist based on the shape of peaks. An implementation is available in package 'pracma', function findpeaks(). Most interesting is, however, the reimplementation in 'pracma2'.

Another very different implementation is available in package 'gsignal', function findpeaks().

Package 'chromatographR' defines get_peaks() based on the derivative or difference being zero at a peak.

At least, some of the features from 'pracma'/'pracma2' could be implement in find_peaks().