A similarity function assigns a value to a pair of points to indicate how close or different they are. In the RBF example, similarity decreases as distance increases: similarity(p, q) = e^−distance(p,q)². These values can serve as added features, helping an SVM separate data that a straight boundary cannot. section 11.3
Comparing points on a line
For points at −1, 0, and 1, the similarity of the point at −1 to those three points is 1, 0.368, and 0.018. Adding a column of such values for each point creates features that can make the labeled data linearly separable. section 11.3
Figure 11.26 Two points that are close to each other are defined to have high similarity. Two points that are far away are defined to have low similarity.
The diagram contrasts high similarity for nearby points with low similarity for distant points. section 11.3









