fitDemPeaks: A formula to fit peaks to a set of data

Description Usage Arguments

Description

Fits a set of peaks with defined centres and widths (HWHM) to a range of spectra. I know the name is silly.

Usage

1
fitDemPeaks(peaks, fixed, guesses, spectra, wavelengths)

Arguments

peaks

The number of peaks you wish to fit (currently no more than four)

fixed

a list of defined centres and widths for your peaks. See the documentation for gaussgen for format

guesses

a list of starting guesses for your data. nls.LM is smart enough that these usually just need to be of the right order of magnitude. In a list, called "i1", "i2" etc.

wavelengths

a vector of the wavelengths your data is over


kuraisle/psRIIfit documentation built on May 20, 2019, 7:06 p.m.