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.169 -- Release Build+8ea56ff35548d526d505b6c30a0e7b1d71cedef9
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