Click or drag to resize

NonnegativeMatrixFactorizationACLSEvaluate Method

Factorizes matrix a into nonnegative factors and nonnegative base vectors.

Namespace: Altaxo.Calc.LinearAlgebra.Factorization
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public (Matrix<double> W, Matrix<double> H) Evaluate(
	Matrix<double> a,
	int r,
	int maximalNumberOfIterations,
	double lambdaH = 0,
	double lambdaW = 0
)

Parameters

a  MatrixDouble
The matrix to factorize.
r  Int32
The number of components (number of base vectors).
maximalNumberOfIterations  Int32
The maximal number of iterations for the calculation.
lambdaH  Double  (Optional)
Regularization parameter for the factors.
lambdaW  Double  (Optional)
Regularization parameter for the base vectors.

Return Value

ValueTupleMatrixDouble, MatrixDouble
Matrix of base vectors W (each base vector is a column of the matrix), and matrix of factors H.
Exceptions
ExceptionCondition
ArgumentNullExceptiona
Remarks

Algorithm is described in [1], page 7.

Please note that base vectors and factors are output in arbitrary order.

See Also