Description Usage Arguments Details
fitCauchy
calculates the Lorentzian/Cauchy fit
1 2 3 | fitCauchy(x, y, center, hwhm, height, yoff)
fitCauchy2(x, y, center, hwhm, height)
|
x |
A numeric vector. The x-axis of the data to be fit. |
y |
A numeric vector. The y-axis of the data to be fit. |
center |
A numeric. A starting guess for the center of the Lorentzian. |
hwhm |
A numeric. A starting guess for the half-width at half-max of the Lorentzian. |
height |
A numeric. A starting guess for the ampltidue scaling of the Lorentzian. |
yoff |
A numeric. A starting guess for the offset from the y-axis. |
This function calculates the Lorentzian/Cauchy fit of the provided data. It
uses dcauchy
to calculate the Lorentzian/Cauchy
profile and optimizes it. This version contains a y-offset optimization.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.