fitCauchy: Lorentzian/Cauchy Fit

Description Usage Arguments Details

Description

fitCauchy calculates the Lorentzian/Cauchy fit

Usage

1
2
3
fitCauchy(x, y, center, hwhm, height, yoff)

fitCauchy2(x, y, center, hwhm, height)

Arguments

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.

Details

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.


bgrich/JLstartup documentation built on May 12, 2019, 8:21 p.m.