block by armollica 82c136720d31633bc79f1ea121a422e2

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