public static double ComputeResidualSqSum(IEnumerable <PixelPoint> Points) => ComputeResidualSqSum(LinearRegression.ComputeLinearRegression(Points), Points);
public static double ComputeResidualSqSum(double[] X, double[] Y) => ComputeResidualSqSum(LinearRegression.ComputeLinearRegression(X, Y), X, Y);