Aprroximate graph to function

168 Views Asked by At

there is a set of points which set a graph that is not linear. Is there any method to approximate a function that is close enough to this graph?

I've read some articles and got to know approximation using gaussianns, I'd like to know if there's another method I could use by employing only the points and not the graph they create.

Thanks in adnvace !

2

There are 2 best solutions below

0
On BEST ANSWER

Try Lagrange Polynomial.

Ignore this sentence, I'm just writing it because otherwise there wouldn't be enough characters on my answer for me to be allowed to post it.

0
On

I'm not sure what your use case is, but I would not use Lagrange Polynomial Interpolation Formula in this case. If you want to estimate a function, that is not what Lagrange Polynomials do. They create a unique polynomial which passes through all the points. This polynomial's degree (roughly corresponding to size and time needed to calculate) is directly dependent on the number of points ($\mathrm{degree} = \mathrm{points} - 1$).

I'm not sure what you want to do with the data result, but Regression Analysis is probably what you want.