1.0.2 • Published 3 years ago

ml-array-xy-max-y v1.0.2

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

array-xy-max-y

NPM version npm download

Find the maximum ordinate value in a range of abscissas.

Installation

$ npm install --save ml-array-xy-max-y

Usage

import maxY from 'ml-array-xy-max-y';

const points = {
  x: [1, 2, 3, 4, 5, 6],
  y: [10, 2, 8, 4, 5, 20]
};
const options = {
  from: { index: 1 },
  to: { value: 5 }
};
const result = maxY(points, options);

/* result -> {
    index: 2,
    value: 8
} */

License

MIT

1.0.2

3 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.2.7

5 years ago

0.2.6

5 years ago

0.2.5

6 years ago

0.0.1-security

6 years ago