light-distance-js

1.0.3 • Public • Published

Lightweight distance JS

The primary aim of this JS library is to be as lightweight as possible while providing various different distance metrics.

Features :

Currently, the following can be calculated :

  • Euclidean Distance

Usage :

First install the library by executing

npm install light-distance-js

The library can be imported and used as follows :

const r = require('light-distance-js')
console.log(r.euclideanDistance([2,3,4],[3,2,1]))
> 3.3166247903554

Readme

Keywords

none

Package Sidebar

Install

npm i light-distance-js

Weekly Downloads

0

Version

1.0.3

License

MIT

Unpacked Size

1.56 kB

Total Files

4

Last publish

Collaborators

  • thvardhan