distancejs
v1.1.0
Published
Vector distance and similarity measurements in JavaScript. eg: Euclidean, Manhattan, Chebyshev, Angular
Downloads
10
Readme
distance.js
Vector distance and similarity measurements in JavaScript. eg: Euclidean, Manhattan, Chebyshev, Angular. by @ChrisPolis
Available measurements
Usage
distancejs[distanceType](arrayA, arrayB, [accessor]);
eg:
Two numeric arrays: distancejs.euclidean(arrayA, arrayB);
Two array of objects: distancejs.euclidean(arrayA, arrayB, function(d) { return d.val; });
License
MIT