Machine Learning, Svm.
x2i) to the line w1*x1+w2*x2+w0 = 0 is given by m = (w1*x1i+w2*x2i+w0) / sqrt(w1² + w2²) refer the below link for a simple derivation on why this is so — Perpendicular Distance from a Point to a Line Shows how to find the perpendicular distance from a point to a line, and a proof of the