Package Exports
- normalise
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (normalise) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
normalise
Normalise data to [0, 1], i.e. feature scaling.
Install
npm i normaliseUsage
var Decimal = require('linear-arbitrary-precision')(require('floating-adapter'));
var normalise = require('normalise')(Decimal).normalise;
normalise([0, 5], 2.5); // => Decimal 0.5
normalise([1, 2], 3); // => Decimal 2
normalise([-5, 1], -3); // => Decimal 1/3See spec.
Related projects
- linear-converter: flexible linear converter with built in conversions for common units.
- rescale: rescales a point given two scales.
- scale: scales normalised data.
- rescale-util: rescale utilities.