nls when the data is a convoluted spectra (variable number of variables)
问题 I have some spectrum data that looks like one of the multiplets when is plotted: http://journals.prous.com/journals/dof/19982303/html/df230301/images/keiferf3.gif How it is seen in the image, all the peaks are realy close among each other, so I would like to do some deconvolution using nls function, like it was posted before (R: Fitting Gaussian peaks to density plot data using nls), but using a Lorentzian function instead: y <- 1/(pi*a*(1+((x-x0)/a)^2)) In my case, x0 is the peak maximum