|
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.NumericalAnalysisAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.248-beta+a497a19de709fd99e2448886199a2c8824265ddf
Syntaxpublic static void LeastSquares(
double[] zValues,
double[] xValues,
double[] yValues,
out double a,
out double b,
out double c
)
Public Shared Sub LeastSquares (
zValues As Double(),
xValues As Double(),
yValues As Double(),
<OutAttribute> ByRef a As Double,
<OutAttribute> ByRef b As Double,
<OutAttribute> ByRef c As Double
)
public:
static void LeastSquares(
array<double>^ zValues,
array<double>^ xValues,
array<double>^ yValues,
[OutAttribute] double% a,
[OutAttribute] double% b,
[OutAttribute] double% c
)
static member LeastSquares :
zValues : float[] *
xValues : float[] *
yValues : float[] *
a : float byref *
b : float byref *
c : float byref -> unit
GSF.NumericalAnalysis.CurveFit.LeastSquares = function(zValues, xValues, yValues, a, b, c);
View SourceParameters
- 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