node-nearest-neighbor icon indicating copy to clipboard operation
node-nearest-neighbor copied to clipboard

Nearest neighbor algorithm to find the most similar object within an array of objects.

Results 4 node-nearest-neighbor issues
Sort by recently updated
recently updated
newest added

So that we can use it in client side. please review. @aschuch

It's very useful to use in js, thanks. I wonder, can we set the k parameter, or its logic do not use the k parameter?

Change the findMostSimilar method to return the 5 most similar objects

Add custom args so that custom comparison methods can provide more args such as max etc. Fields would change to. ``` js var fields = [ { name: "x", measure:...