LinAlgWeightedLstSqrSolveT(ComplexT, ComplexT, 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 Complex<T>[] WeightedLstSqrSolve<T>(
	Complex<T>[][] a,
	Complex<T>[] y,
	T[][] w,
	LstSqrAlgorithm algorithm = LstSqrAlgorithm.QR
)
where T : new(), Object, IRealNumber<T>

Parameters

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

Type Parameters

T
Real Type

Return Value

ComplexT
Solution Vector

See Also