Skip to content
/ nrml Public

Methods for Standardization, Normalization of numerical Arrays

Notifications You must be signed in to change notification settings

cmaurer/nrml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Methods for Standardization, Normalization

Build Status

Methods

MinMax

example:

const nrml = require('nrml')
const minmax = nrml.minmax
let arr = [1, 2, 3, 4, 5, 6]
let minMaxArr = minmax(arr)

which results in the following array

[ 0, 0.2, 0.4, 0.6, 0.8, 1 ]

Standardization (z-score normalization)

example:

const nrml = require('nrml')
const standard = nrml.standard
let arr = [35,36,46,68,70]
let standardArr = standard(arr)

which results in the following array

[ -0.9412, -0.8824, -0.2941, 1, 1.1176 ]

Binary

Decimal

Utility Functions

min

max

mean

sum

sd

variance

zscore

diff

About

Methods for Standardization, Normalization of numerical Arrays

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published