0

I am new to VB.NET and I am trying to write code in vb.net to find a equation when data points are given. For example (1,5),(2,6) etc.

I need to find a equation(not necessarily always linear) from the given points.

I tried to use the help given in

How do I calculate a trendline for a graph?

but couldn't figure out how to get equation.

Any help will be highly appreciated. Thanks in advance.

Community
  • 1
  • 1
Shakyz Dammn
  • 1
  • 1
  • 1
  • That depends on your needs. Do you want an interpolation or a curve approximation? – Dr. belisarius Jan 30 '11 at 22:13
  • What do you mean by "not necessarily always linear"? With two data points it doesn't make much sense to try to estimate anything more complicated (there will be an infinite number of solutions). What sort of data are you trying to estimate? – sinelaw Jan 30 '11 at 22:16

1 Answers1

1

What you're looking for is called Interpolation

Basically it's a field in numerical analysis, and it helps you create a polynomial representation of the data points.

Yochai Timmer
  • 48,127
  • 24
  • 147
  • 185