Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

ml-array-xy-max-y

mljs1.2kMIT1.0.2

Find the maximum ordinate value in a range of abscissas of a {x:[], y:[]}

readme

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

changelog

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

1.0.2 (2021-03-04)

Note: Version bump only for package ml-array-xy-max-y

1.0.1 (2019-10-02)

Note: Version bump only for package ml-array-xy-max-y

1.0.0 (2019-06-29)

chore

  • update dependencies and remove support for Node.js 6 (dc23f9c)

BREAKING CHANGES

  • Node.js 6 is no longer supported

0.2.7 (2019-05-03)

Note: Version bump only for package ml-array-xy-max-y

0.2.6 (2019-04-17)

Note: Version bump only for package ml-array-xy-max-y

0.2.5 (2018-08-16)

Note: Version bump only for package ml-array-xy-max-y

0.2.4 (2018-08-06)

Note: Version bump only for package ml-array-xy-max-y

0.2.3 (2018-08-03)

Note: Version bump only for package ml-array-xy-max-y

0.2.2 (2018-08-03)

Note: Version bump only for package ml-array-xy-max-y

0.2.2 (2018-08-03)

Note: Version bump only for package ml-array-xy-max-y

0.2.1 (2018-08-03)

Note: Version bump only for package ml-array-xy-max-y

0.2.0 (2018-08-03)

Features

  • maxY: select the greatest value in y (1821da4)

0.1.0 (2017-10-07)

Features

  • maxY: select the greatest value in y (1821da4)