Socket
Socket
Sign inDemoInstall

ml-distance-euclidean

Package Overview
Dependencies
0
Maintainers
5
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ml-distance-euclidean

Compute the euclidean distance between two vectors


Version published
Weekly downloads
379K
increased by5.79%
Maintainers
5
Install size
5.98 kB
Created
Weekly downloads
 

Readme

Source

ml-distance-euclidean

NPM version build status npm download

Compute the euclidean distance between two vectors

Installation

$ npm install ml-distance-euclidean

API

const { euclidean, squaredEuclidean } = require('ml-distance-euclidean');

euclidean([0, 1, 4, 6, 2], [3, 6, 9, 4, 3]); // 8

euclidean(p, q)

Returns the Euclidean distance between vectors p and q.

squaredEuclidean(p, q)

Returns the squared Euclidean distance between vectors p and q.

License

MIT

Keywords

FAQs

Last updated on 12 Aug 2018

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