I'm using Math.net to generate a lineal function from a set of data points, the code is simple:
Func<double, double> linetrend = MathNet.Numerics.Fit.LineFunc(x, y);
I can evaluate later in any point using linetrend, but I want to extract the slope and intercept calculate by Fit.LineFunc
. In the debug I can see the values in the Target method but can get to extract them to a string variable.
any help would be appreciated. Thank you.
regards, Carlos
That's the definition of the function:
It doesn't seem to store these values anywhere, but you can get them by calling the same function: