Description Usage Arguments Details
Performs a fit to the cusp line shape dcusp
1 2 3 4 5 |
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. |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.