- nnls(X, y, options?): DataOnly
-
Parameters
-
X: Matrix | number[][]
-
y: number[] | Matrix
-
Optional
options: NnlsOptions<undefined | false>
- nnls(X, y, options?): DataAndInfo
-
Parameters
-
X: Matrix | number[][]
-
y: number[] | Matrix
-
Optional
options: NnlsOptions<true>
- nnls<T>(X, y, options?): NNLSOutput
-
Type Parameters
-
T extends undefined | boolean
Parameters
-
X: Matrix | number[][]
-
y: number[] | Matrix
-
Find $x$ that minimizes the distance
||Ax - b|| s.t x >= 0