MEAN-SHIFT CLUSTERING

Kernel density estimation meets mode seeking — particles climb the density gradient to find cluster centers.

Bandwidth (h)50
Points150
Speed4
Click "Run" to animate gradient ascent

Mean-shift moves each point toward the weighted mean of nearby points (within bandwidth h). Points converge to density modes — the cluster centers. Larger bandwidth merges clusters; smaller bandwidth finds finer structure.