LinAlgWeightedLstSqrSolveT(T, T, T, LstSqrAlgorithm) Method

Solve linear weighted least-squares problem x = inv(A'(W'+W)A)A'(W'+W)y

Definition

Namespace: Metas.UncLib.Core
Assembly: Metas.UncLib.Core (in Metas.UncLib.Core.dll) Version: 2.8.9053.20192
C#
public static T[] WeightedLstSqrSolve<T>(
	T[][] a,
	T[] y,
	T[][] w,
	LstSqrAlgorithm algorithm = LstSqrAlgorithm.QR
)
where T : new(), Object, IRealNumber<T>

Parameters

a  T
Input Matrix
y  T
Known Vector
w  T
Weight Matrix
algorithm  LstSqrAlgorithm  (Optional)
Algorithm

Type Parameters

T
Real Type

Return Value

T
Solution Vector

See Also