Clusters - Density-Based
Clusters - Density-Based
• noise = {p ∈ D : | : p ∈ / C1 ∪ · · · ∪ Ck } where
• C1 , . . . , Ck ⊆ D are clusters
1: procedure DBSCAN(D, , δ)
2: for all x ∈ D do
3: p(x) ← −1 . mark points as unclastered
4: i←1 . the noise cluster have id 0
5: for all p ∈ D do
6: if p(p) = −1 then
7: if ExpandCluster(D, p, i, , δ) then
8: i←i+1
Pros
• Clusters of an arbitrary shape
• Robust to outliers
Cons
• Computationally complex
• Hard to set the parameters
tomas.horvath@inf.elte.hu