node-nearest-neighbor
node-nearest-neighbor copied to clipboard
Nearest neighbor algorithm to find the most similar object within an array of objects.
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:...