block by duhaime 8f7bb6a720d3d654c1ef00f777e97707

K-Nearest Neighbors

Full Screen

K-nearest neighbors search of a 2D set of points. Move the slider or scroll to change k.

The algorithm was adapted from this block

index.html

k-nearest-neighbors.js