Click to See Complete Forum and Search --> : developing math algorithm from mesurement data


azrimalini
June 18th, 2007, 04:51 AM
hi

I got the mesurement data and I create the graph...

The mesurement data from fiber optical experimentation
in this experiment, I do base on the some math formula, like gain,
Brollioin Scattering and etc

example of my mesurement data and the to create graph from this.

x y

26 0.127
27 0.137
28 0.148
29 0.169
30 0.179

from this data, I create the graph. from the the graph I must develop
math formula.

The problem is I don't have any ideal to do this..I need the example for this

help me

Thank you

azri

Zachm
June 18th, 2007, 11:56 AM
The problem you are describing is called, in mathematics terms, "Curve Fitting (http://en.wikipedia.org/wiki/Curve_fitting)" - a method that given a set of points in N-dimensional space (in your case, 2-dimensional), finds a formula / equation that best describes the set.

One of the simpler methods of doing Curve Fitting is by Least Squares (http://en.wikipedia.org/wiki/Least_squares) method.
If you have any mathematics background, you might attempt to create a program that computes a polynomial fit of your data set using least squares method.
It's not very complicated ONCE you understand the math.
If you don't have the time to bother, there are many tools for curve fitting out there, some are free and some cost a lot of money.

If I can recommend one free tool, try gnuplot (http://www.duke.edu/~hpgavin/gnuplot.html). If you check the link, there is a tutorial how to do curve fitting using it.

Best of luck,

Zachm

Simon666
October 19th, 2007, 10:01 AM
One of the simpler methods of doing Curve Fitting is by Least Squares (http://en.wikipedia.org/wiki/Least_squares) method.
Would you happen to know some code for least square problems that can compile in Visual C++ 6.0?