Apex › Storage & databases

Clustering any shape + finding outliers (DBSCAN)

Where k-means can only make round blobs, DBSCAN clusters by density: a point is “core” if ≥minPts neighbours sit within radius eps, and clusters flood outward along chains of core points — so they take any shape, the count emerges on its own, and stray points are labeled noise. Verified in node on concentric rings: DBSCAN cleanly separates the two rings (eps=0.09 → 2 clusters, 2 noise) while k-means slices them down the middle (~57%). Toggle DBSCAN vs k-means and tune eps.

More in Storage & databases