mcrals.nnls | R Documentation |
Non-negative least squares
mcrals.nnls(
D,
A,
tol = 10 * .Machine$double.eps * as.numeric(sqrt(crossprod(A[, 1]))) * nrow(A)
)
D |
a matrix |
A |
a matrix |
tol |
tolerance parameter for algorithm convergence |
Computes NNLS solution for B: D = AB' subject to B >= 0. Implements the active-set based algorithm proposed by Lawson and Hanson [1].
1. Lawson, Charles L.; Hanson, Richard J. (1995). Solving Least Squares Problems. SIAM.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.