Socket
Socket
Sign inDemoInstall

ml-distance-matrix

Package Overview
Dependencies
0
Maintainers
7
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
Maintainers
7
Created

Changelog

Source

2.0.0 (2019-07-13)

chore

  • modernize project (cac9c7e)

Features

BREAKING CHANGES

  • Node.js 4 and 6 are no longer supported.

<a name="1.0.0"></a>

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 13 Jul 2019

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