CurveFitLeastSquares(Double, Double, Double, Double) Method

Uses least squares linear regression to estimate the coefficients a and b from the given (x,y) data points for the equation y = a + bx.

Definition

Namespace: Gemstone.Numeric.Analysis
Assembly: Gemstone.Numeric (in Gemstone.Numeric.dll) Version: 1.0.178 -- Release Build+637be28bb791acbdd84bb7f11d11beacd0a820c2
public static void LeastSquares(
	double[] xValues,
	double[] yValues,
	out double a,
	out double b
)

Parameters

xValues  Double
x-value array
yValues  Double
y-value array
a  Double
the out a coefficient
b  Double
the out b coefficient

See Also