Comparing version
{ | ||
"name": "essy-nnls", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Wrapper for native C non-negative least squares (NNLS) algorithm.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -7,3 +7,3 @@ ## README ## | ||
### Documentation ### | ||
The package exposes a single function `NNLS(a, b, m, n)`. | ||
The package exposes a single function `NNLS(a, b, m, n, tol)`. | ||
@@ -14,3 +14,4 @@ `a {Float32Array}` A flat m x n matrix. m0n0, m1,n0, m2,n0 ... mN,nN. | ||
`n {Number}` Number of columns. | ||
`tol {Number}` Tolerance for precision. 0 produces best results, higher values (eg, 0.01) faster but more approximate. | ||
Returns an n-length `Float32Array`. | ||
@@ -41,4 +42,4 @@ | ||
essyNNLS.NNLS(a, b, 4, 2); // => [0, 0.629] | ||
essyNNLS.NNLS(a, b, 4, 2, 0); // => [0, 0.629] | ||
``` |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
17629
1.69%43
2.38%