Graph window |
Graph Management |
Graph Options - Least Squares Fit |
|
Modify the name, the appearance (i.e. display options), view the resulting least square fit formula, and/or select another function to recalculate the selected graph by least squares fit.
This dialog box appears:
Dialog box options:
Name: |
Optionally, modify the name of this graph by least squares fit. The name of the graph layer is visible in the Graph Management pane and in the legend of the graph window. |
Line type: |
Select a line type in which the graph by least squares fit should be displayed.
|
Color: |
Select a color with which the graph should be displayed. To define your own color, click the little create button or select the 'Custom' item at the bottom of the list; then, the Windows Color dialog box will appear. |
Support line: |
For line types Single, Dot, Dash, Dash Dot, Dash Dot Dot and Symbol:
|
Background color: |
When a support line is specified for line types Single, Dot, Dash, Dash Dot, Dash Dot Dot or Symbol: select an extra color for the support line. For line types Double, Triple or Blocked, select an extra color for the inner part of a double, triple or blocked line. |
Line width (mm): |
Specify the line width (mm) with which the graph should be drawn in the graph window and in which the graph should be printed.
|
Block distance (mm): |
For line type Blocked: Type a value for the distance between the blocks (mm). |
For line type Symbol: Click the Symbol button to select a symbol, a symbol size, and a rotation. You can use simple symbols or a symbol from any installed symbol font. The Line Symbols dialog box will appear. |
|
Symbol distance (mm): |
For line type Symbol: Specify a value for the distance between the symbols. |
Function: |
Optionally, select another function to recalculate the least squares fit. The following functions are available: Exponential, Logarithmic, Polynomial, Power Law, and Trigonometric. For more information, see the Add Graph Least Squares Fit dialog box. |
Nr. of terms: |
When using the Polynomial or Trigonometric function, specify the number of terms that the function should use. |
Least Squares Fit equation: |
|
View the resulting formula of the (previous) least squares fit calculation. |
Tips:
The grid lines of the graph can be modified in the X-axis and Y-axis dialog boxes.
Available functions:
Exponential: |
y = a * ebx |
Logarithmic: |
y = a * log(b* x) |
Polynomial: |
y = a + b* x + c* x2 + d* x3 + ... |
Power Law: |
y = a * xb |
Trigonometric: |
y = a + b * cos(x) + c * sin(x) + ... |
Examples:
Example 1:
The values of column ColX and column ColY1 are used to create a Graph from Columns (the red points in Figure 1 below). Then, by adding a Graph by Least Squares Fit, in this case using a polynomial function with 2 terms, the 'best' fit is found through these points (the black line in Figure 1 below).
The resulting formula is Y = 49.101 + 1.276 * X and can be viewed on the Graph Options - Least Squares Fit dialog box.
Example 2:
The values of column ColX and column ColY2 are used to create a Graph from Columns (the red points in Figure 1 below). Then, by adding a Graph by Least Squares Fit, in this case using an exponential function, the 'best' fit is found through these points (the black line in Figure 1 below).
The resulting formula is Y = 42.341302790409 * exp(0.007566547732 * X) and can be viewed in the Graph Options - Least Squares Fit dialog box.
See also:
Graph window : Graph Management
Add Graph Least Squares Fit (dialog box)