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

array-normalize

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

array-normalize - npm Package Compare versions

Comparing version 1.1.2 to 1.1.3

2

index.js

@@ -34,3 +34,3 @@ 'use strict'

for (i = offset; i < l; i+=dim) {
arr[i] = (arr[i] - min) / range
arr[i] = range === 0 ? .5 : (arr[i] - min) / range
}

@@ -37,0 +37,0 @@ }

{
"name": "array-normalize",
"version": "1.1.2",
"version": "1.1.3",
"description": "Normalize array (possibly n-dimensional) to zero mean and unit variance",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -21,1 +21,4 @@ 'use strict'

assert.deepEqual(norm(e.slice(), 2, getBounds(e, 2)), [0, 0, .1, .1, 1, 1])
let f = [0, .25, 1, .25]
assert.deepEqual(norm(f, 2, [0, .5, 1, .5]), [0, .5, 1, .5])
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