Comparing version 1.0.2 to 1.0.3
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17629
43