Click or drag to resize

WeightedRegressionWeightedT(MatrixT, MatrixT, MatrixT) Method

Weighted Linear Regression using normal equations.

Namespace: Altaxo.Calc.LinearRegression
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
public static Matrix<T> Weighted<T>(
	Matrix<T> x,
	Matrix<T> y,
	Matrix<T> w
)
where T : struct, new(), IEquatable<T>, IFormattable

Parameters

x  MatrixT
Predictor matrix X
y  MatrixT
Response matrix Y
w  MatrixT
Weight matrix W, usually diagonal with an entry for each predictor (row).

Type Parameters

T
The numeric element type.

Return Value

MatrixT
The fitted regression coefficient matrix.
See Also