fitCusp: Cusp Line Shape Fit

Description Usage Arguments Details

Description

Performs a fit to the cusp line shape dcusp

Usage

1
2
3
4
5
fitCusp(x, y, height, width, xoff, yoff)

fitCusp2(x, y, height, width, xoff, yoff)

fitCusp3(x, y, height, width, xoff)

Arguments

x

a numeric vector. The x coordinates to be fit.

y

a numeric vector. The y coordinates to be fit.

height

a numeric. An initial guess to the height of the distribution.

width

a numeric. An initial guess to the width of the distribution.

xoff

a numeric. An initial guess to the x-offset of the distribution.

yoff

a numeric. An initial guess to the y-offset of the distribution.

Details

These functions perform fits of provided data to the cusp line shape dcusp using optim. The base version of fitCusp using a max iteration number of 300 in optim. fitCusp2 uses a max iteration number of 1000. fitCusp3 also uses a max iteration number of 1000, but removes the y-offset.


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