Download here (21.7K) - Note: you will need MFC42.DLL to run the program.
This is my version of the program written by Omri Weisam and Ziv Pollack. I'd modified their code before and created PDA - a simple DOS-based program that read points from a data file and used perceptrons to draw a line of division.
I've rewritten the program from scratch, using C++ constructs. The program also displays the equation of the line it found, it will also display a message if the points are non-linear separable. The program will read from data.txt the points and then display them on a graph in the dialog box. The points can be anywhere between 0 and 100 - the graph will automatically adjust its scale to suit the data points. Hit "Run" and the program will use perceptrons to determine the line of division, and will both draw the line on the graph and display its equation (rounded to tenths).
The format of the data file is very simple, the first two numbers are the total numbers of points for Type A and Type B. The paired numbers are the data points. In the example I provided, there are 10 points each for the two groups. You can have up to 20 points in each group, and there doesn't have to be an equal number of points in each group.
For more information on perceptrons, read the Generation5 essay.
The source code by Weisam and Pollack can be downloaded here if you interested in an ANSI compatible version.
[an error occurred while processing this directive]