Curve fitting
February 27th, 2007
I’ve just added the ability to do curve fitting. To try it out, click on the ‘curve fit’ tab, select the line you want to do a curve fit to and click on ‘create a curve fit for this line’.
Here’s a quick example. Say I have data that looks like this:| x | y |
| 0 | 0.9 |
| 1 | 2.3 |
| 2 | 5.1 |
| 3 | 9.8 |
| 4 | 17.0 |
| 5 | 25.5 |
| 6 | 37.1 |
It’s roughly quadratic, so I want to fit it with an equation like this: y = Ax2 + B.
The equation has two variables: A and B. There should already be one variable made for you, so click on ‘create new variable’ to make a second. Now name the first A, and set its starting value to 1.0. Name the second B and set its starting value to 1.0 as well.
Enter the equation in the equation box like this:
y = A*x**2+BFor more information on equations, go to the curvefit equation help page.
You can leave everything else as is. To actually do the curve fit, click on the ‘save data and update graph button’. You should see the results of the curve fit in the preference form, something like this:

Scott

Sorry, comments are closed for this article.