Description Usage Arguments Details
fitG
calculates the Gaussian fit
1 2 3 |
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. |
mu |
A numeric. A starting guess for the mean of the Gaussian. |
sig |
A numeric. A starting guess for the standard deviation of the Gaussian. |
scale |
A numeric. A starting guess for the ampltidue scaling of the Gaussian. |
yoff |
A numeric. A starting guess for the offset from the y-axis. |
This function calculates the Gaussian fit of the provided data. It uses
dnorm
calculate the Gaussian 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.