mcrals.nnls {mdatools} | R Documentation |
Non-negative least squares
Description
Non-negative least squares
Usage
mcrals.nnls(
D,
A,
tol = 10 * .Machine$double.eps * as.numeric(sqrt(crossprod(A[, 1]))) * nrow(A)
)
Arguments
D |
a matrix |
A |
a matrix |
tol |
tolerance parameter for algorithm convergence |
Details
Computes NNLS solution for B: D = AB' subject to B >= 0. Implements the active-set based algorithm proposed by Lawson and Hanson [1].
References
1. Lawson, Charles L.; Hanson, Richard J. (1995). Solving Least Squares Problems. SIAM.
[Package mdatools version 0.14.1 Index]