Free WPF graphical editor for adjusting I / O

I am looking for a good wpf control to do the following:

1) Present the graph to the user, with points that you can drag to change the curve.

2) At runtime (Backgrond thread not connected to WPF) access this curve and enter it and get the result corresponding to the curve

Simple example

enter image description here

Entering 20 in the above example will yield about 30

edit: Oh, I almost forgot, its a plus if its connectivity, because I use Caliburn Micro (MVVM)

edit: resolved it using the curve matching algorithm enter image description here

+4
source share
1 answer

I used cubic spline interpolation as a curve, I ported this

http://www.codeproject.com/KB/cs/SplineInterpolation.aspx

Then, to solve the Y values ​​for known X values, use this http://geekswithblogs.net/JuanDoNeblo/archive/2007/10/25/Data-Interpolation-with-SPLINE-in-Csharp.aspx

Result: enter image description here

+2
source

Source: https://habr.com/ru/post/1388997/


All Articles