Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

essy-nnls

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

essy-nnls - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc