Socket
Socket
Sign inDemoInstall

ml-distance-matrix

Package Overview
Dependencies
0
Maintainers
8
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ml-distance-matrix

Compute a distance/similarity matrix


Version published
Weekly downloads
1.4K
decreased by-13.96%
Maintainers
8
Install size
7.27 kB
Created
Weekly downloads
 

Readme

Source

distance-matrix

NPM version build status Test coverage npm download

Compute a distance/similarity matrix.

Installation

npm i ml-distance-matrix

API Documentation

Example

const distanceMatrix = require('ml-distance-matrix');
const { euclidean } = require('ml-distance-euclidean');

// Computes euclidan distance for each pair of possible vectors
const matrix = distanceMatrix([[8, -1, 2], [-4, 0, 3], [-3, -1, 6]], euclidean);

License

MIT

Keywords

FAQs

Last updated on 08 Apr 2020

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