I am trying to create a simple windows form application in visual studio 2010 using C#.
I want to feed the program 5 (x,y) coordinates and based on these points have the program fit a line through them.
For example, if my x values are dollars and my y values represent customer satisfaction, then I will feed the program the following 5 points:
(x,y)
($0,0)
($25000, 0.10)
($50000, 0.25)
($75000, 0.60)
($100000, 1.0)
Based on these points given to the program, I would like the program to create a smooth curve through the points and give me y values that fall between the points above.
In other word, I will ask the program based on the 5 points to now tell me what the satisfaction level is for $60000 which falls between 0.25 and 0.60 as per the table above.
I don't really need a graph to be drawn - just need the correct y value for any x value I ask.
Any help would be greatly appreciated. :)
Thanks,
Hunter