Visualization of kNN's decision boundary in real-time.
- Tap to add a new point.
- Tap red or blue rectangles at the top to choose the class label to which new points are assigned.
- Use --, ++ to adjust the number of nearest neighbours.
Note that the real decision boundary is not jagged like what you see. That is just because of my naive implementation.