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
HMFW() a function to compute the "half-maximum full-width" of peaks in spectra #36
This function is rather easy to implement with existing functions. A first cut at the code for a single peak is below. This could be made an S3 method for generic_spct but probably not needed, while support for multiple peaks in a single spectrum much more important.
This function is rather easy to implement with existing functions. A first cut at the code for a single peak is below. This could be made an S3 method for
generic_spct
but probably not needed, while support for multiple peaks in a single spectrum much more important.