normalize-value

1.0.2 • Public • Published

normalize-value

Last version Build Status Coverage Status Dependency status Dev Dependencies Status NPM Status

Normalizes a value according to the specified steps, using feature scaling.

Install

$ npm install normalize-value --save

Usage

const normalizeValue = require('normalize-value')

const normalizedValue = normalizeValue(500, [
  { value: 0, norm: 1 },
  { value: 1000, norm: 0 }
])

console.log(normalizedValue) // => 0.5

License

normalize-value © Kiko Beats, Released under the MIT License.
Authored and maintained by Kiko Beats with help from contributors.

kikobeats.com · GitHub @Kiko Beats · Twitter @Kikobeats

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    173
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    173
  • 1.0.1
    2
  • 1.0.0
    0

Package Sidebar

Install

npm i normalize-value

Weekly Downloads

167

Version

1.0.2

License

MIT

Unpacked Size

6 kB

Total Files

5

Last publish

Collaborators

  • kikobeats