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.218-beta+101eee949414e414795e55a6e73d88938f0177b8
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