Click or drag to resize

CurveFitLeastSquares Method

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

Namespace: GSF.NumericalAnalysis
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.207-beta+1781b796b2aa7a54013a031eb432fe4ccee31867
Syntax
public static void LeastSquares(
	double[] zValues,
	double[] xValues,
	double[] yValues,
	out double a,
	out double b,
	out double c
)
View Source

Parameters

zValues  Double
z-value array
xValues  Double
x-value array
yValues  Double
y-value array
a  Double
the out a coefficient
b  Double
the out b coefficient
c  Double
the out c coefficient
See Also