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.166 -- Release Build+615b5375380e2ef684e1623e3d24332fd3a8e571
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