← Home

Cosine Similarity & AI

A smart sprinkler uses cosine similarity to control how much water to use. The closer the weather aligns with "sunny and dry," the harder it sprinkles — not just on or off, but a smooth gradient. Drag the weather vector to explore.

Weather = (0, 5)
Target = (6, 0) fixed
Intensity: 0%
0%50%100%
θ = 90.0°
45°90°