Grid:
Same line, bigger numbers
‖w‖
Origin's distance |b| / ‖w‖
how far the line is from (0, 0); b alone is the score of the origin
+ side · − side · on the line
Selected points
Click a point to select or deselect it. Each selected point shows its score and its signed distance (negative on the − side). With more than four selected, only P and N keep their labels on the plane; the table lists them all.
What to try
- Read the two default points: P scores +10 and sits 2 units on the blue side, N scores −5 and sits 1 unit on the coral side.
- Press double w and b. The line does not move, the scores double, and the distances stay put: dividing by ‖w‖ undoes the stretch.
- Drag the tip of w. The line turns so that it always stays at a right angle to the arrow.
- Set b = 0. The line now passes through the origin, and the origin's score is 0.
- Add a random cloud and count the points on each side. Which points are far from the line, and which are close?