Click or drag to resize

DoubleNonnegativeLeastSquares(DoubleMatrix, DoubleVector, DoubleVector) Constructor

Constructs a nonnegative least squares solution for the given linear system Ax = y.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public DoubleNonnegativeLeastSquares(
	DoubleMatrix A,
	DoubleVector y,
	DoubleVector weights = null
)

Parameters

A  DoubleMatrix
The matrix.
y  DoubleVector
The right hand side of the linear system.
weights  DoubleVector  (Optional)
Weights. Null if unweighted.
Exceptions
ExceptionCondition
MismatchedSizeExceptionThrown if the number of rows in A is not equal to the length of y.
NMathExceptionThrown if the specified maximum number of iterations performed by the algorithm was exceeded.
See Also