Click or drag to resize
WeightedRegressionWeightedT Method (Matrix`1T, Vector`1T, Matrix`1T)
Weighted Linear Regression using normal equations.

Namespace: MathNet.Numerics.LinearRegression
Assembly: MathNet.Numerics (in MathNet.Numerics.dll) Version: 3.7
Syntax
C#
public static Vector<T> Weighted<T>(
	Matrix<T> x,
	Vector<T> y,
	Matrix<T> w
)
where T : struct, new(), IEquatable<T>, IFormattable

Parameters

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

Type Parameters

T

Return Value

Type: VectorT
See Also