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

Add to `fit_peaks()` support for additional methods #29

Open aphalo opened 8 months ago

aphalo commented 8 months ago

Currently the only method supported is spline, which is usually o.k. for estimating the wavelength location but not the height of a peak. Fitting Gauss, Lorentz and Voigt functions could be implemented as these are frequently used, at least when peaks are on a low baseline

See files in folder inst-not for background information. These would need to use nls() and some kind of self starting functions.

See also function fit_peaks() in package 'chromatographR'.

aphalo commented 8 months ago

Examples from Alan Morison

thumbnail_image001

thumbnail_image002

thumbnail_image003