node package manager
Stop writing boring code. Discover, share, and reuse within your team. Create a free org »

normal

normal

normalize a javascript array

var t = [1,34,455,564,4,435,23,555,23]
var n = normal(t, 100)
// n is now an array normalized to a scale of 100 
console.log(n)

Install

npm install normal