fitG: Gaussian Fit

Description Usage Arguments Details

Description

fitG calculates the Gaussian fit

Usage

1
2
3
fitG(x, y, mu, sig, scale, yoff)

fitG2(x, y, mu, sig, scale)

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.

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.

Details

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.


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