Ordinary least-square linear regression with or without weights
public static Void LinearRegression(Int32 numpoints,
Double[] x,
Double[] y,
Double[] weights,
Double[]& coeffs)

Parameters

numpoints
The number of points in x array.
x
Array of x values. The size of x and y must be the same.
y
Array of y values. The size of x and x must be the same.
weights
Point weights. If null, no weights are used in linear regression.
coeffs
Returns linear regression coefficients.

See Also

Regression Class | Regression Members | Steema.TeeChart.Functions Namespace