lamp_mac/TOF/
fitgauss.pro
PRO fitgauss, x_in, y_in, e_in, xmin, xmax, par, dpar, ispec, $
all=allpoints, plot=plot
Fits a Gaussian plus a flat background, and calculates partial derivatives.
Normally called from normalise.pro and elastic.pro
ARGUMENTS
xmin :min limit of fit range
xmax :max limit of fit range
par :output of fitted Gaussian parameters :-- par(0) - flat background
par(1) - height
par(2) - centre
par(3) - FWHM (sigma)
dpar :errors in fitted parameters
ispec :spectrum number (used by elastic.pro)
KEYWORDS
/all : keeps all points in range xmin
Routines
Routine details
top fitgauss
fitgauss, x_in, y_in, e_in, xmin, xmax, par, dpar, ispec, all=all, plot=plot
** ******** ** User callable ** Fits a Gaussian plus a flat background, and calculates partial derivatives. ** Normally called from normalise.pro and elastic.pro
Parameters
- x_in
- y_in
- e_in
- xmin
- xmax
- par
- dpar
- ispec
Keywords
- all
- plot
File attributes
Modification date: | Tue Oct 1 14:39:52 2013 |
Lines: | 181 |