I have 2d chart which is consisted from well known points and now I want to get y value for some desired x. I want to call method where I pass x value and method will return y value. Is there any lib which can help me to achieve this?
Asked
Active
Viewed 22 times
0
-
What do you mean with 'I have 2d chart which is consisted from well known points' do you have an equation for it? Maybe you should ask this in the math stack. – Zokka May 31 '21 at 14:50
-
1Please note that asking for recommendations of libraries etc is off topic here. Depending on the size of the chart simple implementation of searching for the correct position and doing linear interpolation will be easy to implement. – Sami Kuhmonen May 31 '21 at 14:52
-
Asuming MSChart: [Another post about interpolating chart values](https://stackoverflow.com/questions/34285166/how-can-i-get-the-x-value-if-i-know-the-y-value-of-a-point-on-a-chart/34444316#34444316) – TaW May 31 '21 at 15:47