7. The method of claim 6 including finding the nearest neighbors to said first point, finding the nearest neighbors to the second point and counting how many of the neighbors have the same class label between the two points.
7. The method of claim 6 including finding the nearest neighbors to said first point, finding the nearest neighbors to the second point and counting how many of the neighbors have the same class label between the two points. 8. The method of claim 7 including determining the affinity as the ratio of the number of nearest neighbors to each point divided into the number of neighbors that have the same class label between the two points.