Nearest Neighbor Applet
by Mohamed Sadou
This applet Simulates the nearest K-neighbor algorithm with two classes and does the learning of a triangle according to the Observation 2 of the Learning Geometric Concepts page.
to use the regular K-NN algorithm you can click on the training mode, input the points corresponding to positive and negative examples then click create.
to use the Learning tool of a triangle as described int the Observation 2 of this paper. go to the Triangle mode. create the triangle and you will observed the 9 necessary points for learning this triangle.
the testing is done using the testing mode. use it for either preliminary choice( Training or Triangle).