Socket
Socket
Sign inDemoInstall

array-xy-max-merge

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    array-xy-max-merge

Merge abscissa values on similar ordinates and keeps the abscissa with bigger ordinate value


Version published
Weekly downloads
2
increased by100%
Maintainers
1
Install size
6.66 kB
Created
Weekly downloads
 

Readme

Source

array-xy-max-merge

NPM version npm download

Merge abscissa values on similar ordinates and keeps the abscissa with bigger ordinate value.

Installation

$ npm install --save array-xy-max-merge

Usage

import maxMerge from 'array-xy-max-merge';

const points = {
    x: [100.001, 100.002, 200.01, 200.02, 300.0001, 300.0002],
    y: [10, 11, 20, 21, 30, 31]
};

const merged = maxMerge(points, {groupWidth: 0.010001});
/*
merged.x -> [100.002, 200.02, 300.0002];
merged.y -> [21, 41, 61];
*/

License

MIT

FAQs

Last updated on 25 Jul 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc