Download AxoGraph X User Manual

Transcript
44
Analyse ➔ Fit General… Enter the equation to fit in the f (x) = text edit box.
The equation shown here ‘a * exp( -(x-c)^2 / b )’ describes a Gaussian curve.
The Precision of the fit
should generally be set
to less than 5%. The
smaller the value, the
more accurate the fit but
the longer it will take. A
value of 0% will give
the best possible fit.
The simplex algorithm will Minimize either the Sum of Squared Errors or Chi Squared. Sum of squared
errors minimization should be used when the noise on the data is independent of the amplitude of the data.
Chi squared minimization should be used when the noise on the data is approximately proportional to the
amplitude of the data.
The fitting algorithm works best when reasonably good starting guesses are supplied for the parameter
values. Turn on the Guess starting values check box and enter starting guesses in the subsequent dialog.
Click OK.
If the Guess starting values check box is off, AxoGraph attempts to guess the
starting values of the free parameters. This slows the fit and may not work. If the
Guess starting values check box was on, the Guess dialog appears.
Enter starting guesses for the free parameters, ‘a’, ‘b’, etc., then click the Test
button. The starting values are substituted into the general equation and the resulting
curve is drawn to the screen. If no curve is seen, then the starting guesses are so bad
that the curve is above or below the visible region of the graph. Try several starting
guesses until the resulting curve loosely approximates the data, then click the Done button.
The Range Selector dialog appears. Use it to select the range of data values to be fitted. See section 11.2 for
details on how to select the range.
Click OK and the general equation is fitted to each trace in the front group. The fitted curve(s) are drawn on
the screen. The parameters that produced the best fit, and the goodness of fit measure (SSE) are sent to the
log window.
The Fitted Function dialog appears that specifies how to handle the fitted curve. By default the curve is not
saved. To print or export the graph together with the fitted curve, the curve must first be incorporated into
the graph. Turn on the Append to current file radio button and click OK. The fitted curve is appended to the
graph window, and the new trace is added to the front group.
Fit General… uses a Simplex optimization procedure to minimize the sum of squared errors between the
general equation and the data trace. See Chapter 19, ‘Technical Information’ for details. The general
equation is compiled into memory for maximum speed.
A general curve fit can be used perform a linear or exponential curve fit with one or more parameters held
constant during the fit. For example a * exp(-x / 2) is a single exponential with a fixed time constant of 2).
This is not possible with the dedicated linear and exponential fits described above (section 11.2 and 11.3).