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.253-beta+ffb7163c9e3b771705bc5b9aa3f09870f2cb9e2c
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