Download GRASANSP

Transcript
GRASansP
Manual V.2, Software V. 3.40, April 2003
3
Starting parameters for the curve fit can be either entered directly into the
parameters edit boxes, auto guessed (‘Auto_Guess’ button) or chosen
manually by clicking around particular points of the data to be fitted (‘Point &
Click’ button), for example the background, peak intensity and position,
width.
4
Once initial fit starting parameters have been provided the fit can
commence by clicking the ‘FitIt!’ button.
The final fit parameters are
returned in the parameters edit boxes alongside their error. The Matlab™
edit window scrolls more detailed information from the ‘mf_lsqr.m’
minimisation function including the chi-squared, number of iterations etc.
Tip: The results from the last curve fit procedure can be accessed either on the Matlab™
command line, standard Matlab™ ‘.m’ routines or user modules though the GRASansP global
variable structure ‘fit_parameters’.
Example: 1D Curve Fitting – Two function fitted simultaneously
The example data presented below shows a strip average across a data set exhibiting two
Bragg peaks at opposite sides of the multi detector. The two peaks are roughly Gaussian
and should be of the same Gaussian full-width-half-max (FWHM). The two peaks could be
fitted individually, as in the previous example, by zooming in on the region of the interest of
the data. On the other hand, if the two peaks are fitted simultaneously the FWHM for the
peaks can be forced to be common. This is one of the advantages of simultaneously fitting
multiple similar functions. Other advantages might be where two peaked functions overlap
significantly and cannot be easily resolved.
1
Using the ‘Gaussian_n’ function, set the number of simultaneous functions,
n, to 2.
2
Starting parameters for the curve fit can be either entered directly into the
parameters edit boxes or chosen manually by clicking around particular
points of the data to be fitted (‘Point & Click’ button), for example the
background, peak intensity and position, width.
(NOTE:
Auto guess
currently only works for single peaked functions and is not yet implemented
for multiple peaked functions).
3
To ‘group’ the FWHM of the two Gaussian functions, tick the checkbox to
the right hand side of the first Gaussian FWHM parameter.
Both fitted
Gaussian will be forced to share a common FWHM.
GRASansP
Page 51 of 95