private SimpleRegressionModel MinRangeLinearRegression() { var x = Vector.Create(Points.Select(v => v.NDouble).ToArray()); var y = Vector.Create(Points.Select(v => v.TotDouble).ToArray()); var regression = new SimpleRegressionModel(y, x); regression.Fit(); return(regression); }
private SimpleRegressionModel SigDigitsLinearRegression() { var x = Vector.Create(Points.Select(v => (double)v.X).ToArray()); var y = Vector.Create(Points.Select(v => (double)v.Y).ToArray()); var regression = new SimpleRegressionModel(y, x); regression.Fit(); return(regression); }