|
Smoothing, differentiating and integrating curves |
|
|
A single Prism analysis smooths a curves and also (optionally) converts the resulting curve to its derivative or integral.
Finding the derivative or integral of a curve
The first derivative is the steepness of the curve at every X value. The derivative is positive when the curve heads uphill and is negative when the curve heads downhill. The derivative equals zero at peaks and troughs in the curve. After calculating the numerical derivative, Prism can smooth the results, if you choose. The second derivative is the derivative of the derivative curve. The integral is the cumulative area under the curve. The integral at any value X equals the area of the curve for all values less than X.
Prism uses the trapezoid ruleto integrate curves. The X values of the results are the same as the X values of the data you are analyzing. The first Y value of the results equals a value you specify (usually 0.0). For other rows, the resulting Y value equals the previous result plus the area added to the curve by adding this point. This area equals the difference between X values times the average of the previous and this Y value. Smoothing a curve If you import a curve from an instrument, you may wish to smooth the data to improve the appearance of a graph. Since you lose data when you smooth a curve, you should not smooth a curve prior to nonlinear regression or other analyses. Prism gives you two ways to adjust the smoothness of the curve. You choose the number of neighboring points to average and the 'order' of the smoothing polynomial. Since the only goal of smoothing is to make the curve look better, you can simply try a few settings until you like the appearance of the results. If the settings are too high, you lose some peaks which get smoothed away. If the settings are too low, the curve is not smooth enough. The right balance is subjective -- use trial and error. The results table has fewer rows than the original data. References Savitsky and Golay (Analytical Chemistry, 36:1627-1639, 1964). |