Fits a set of peaks with defined centres and widths (HWHM) to a range of spectra. I know the name is silly.
1 | fitDemPeaks(peaks, fixed, guesses, spectra, wavelengths)
|
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.