1.3.7 • Published 3 years ago

ml-array-normed v1.3.7

Weekly downloads
276
License
MIT
Repository
github
Last release
3 years ago

array-normed

NPM version npm download

Norme the vector (sum to 1 by default)

Installation

$ npm install --save ml-array-normed

Usage

import normed from 'ml-array-normed';

const result = normed([1, 2, 3, 4]);
// [0.1, 0.2, 0.3, 0.4]
import normed from 'ml-array-normed';

const result = normed([1, 2, 3, 4], {algorithm:'max'});
// [0.25, 0.5, 0.75, 1]
import normed from 'ml-array-normed';

const result = normed([1, 2, 3, 4], {algorithm:'max', maxValue: 100});
// [25, 50, 75, 100]

License

MIT

1.3.7

3 years ago

1.3.6

4 years ago

1.3.5

4 years ago

1.3.4

4 years ago

1.3.3

4 years ago

1.3.2

5 years ago

1.3.1

5 years ago

1.3.0

5 years ago

1.2.0

5 years ago

1.1.0

5 years ago

1.0.3

6 years ago

1.0.2

7 years ago

1.0.1

7 years ago