MultiPeakFit | R Documentation |
MultiPeakFit
performs a multi-peak fit for (partially) overlapping
peaks. All peaks in a multi-peak cluster share common peak parameters except
amplitude and position. Various options allow for a more or less constrained
fit (see description of options below).
MultiPeakFit(dataX, dataY, mass, intensity, commonPar, options)
dataX |
x axis data. |
dataY |
y axis data. |
mass |
Vector of the known positions of the peaks. |
intensity |
Vector of initial guesses for intensities. If all values are 0 the guess values for peak intensities are generated automatically. |
commonPar |
Vector of guess values of common peak parameters. |
options |
List of peak model and optimization options (see Details). |
The peak positions are not optimized, but the common mass shift parameter in
commonPar
allows for minimal refinement of the peak positions due to
imperfect mass calibration.
options
is a list containing:
peakModel | = | 0 (Gauss) or 1 (Lorentz) or 2 (Pseudo-Voigt) |
asymmetric | = | 0 (symmetric peak model) or 1 (asymmetric peak model) |
baseline | = | 0 (no optimization of baseline parameters) or 1 (optimize baseline parameters) |
width | = | 0 (no optimization of width parameters) or 1 (optimize width parameters) |
peakShape | = | 0 (no optimization of peak shape (mu) parameter) or 1 (optimize peak shape (mu) parameter (applies only to pseudo-Voigt)) |
massShift | = | 0 (no optimization of common mass shift parameters) or 1 (optimize common mass shift parameters) |
amplitude | = | 0 (no constraint on amplitudes) or 1 (constrain sum of baseline and all peaks to total intensity in spectrum) |
Note that if a given parameter is not activated for optimization, the supplied (guess) values are still used (e.g. specify a known baseline without optimizing the parameters).
List with the optimized intensities and common peak parameters.
Other Peak fitting functions:
EvalMultiPeak()
,
EvalSinglePeak()
,
FitSinglePeak2()
,
FitSinglePeak()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.