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