上図において、minPts = 4 である。点 A およびその他の赤点はコア点である。その理由は、半径 ε でこれらの点を囲んでいる領域は少なくとも(その点自身を含めて)4 つの点を含んでいるからである。上図のコア点はすべて互いに到達可能であり、単一のクラスタを形成する。点 B および C はコア点ではない。しかし、A から(他のコア点を介して)到達可能であり、それゆえこのクラスタに属す。点 N はコア点でなければ密度到達可能点でもないので、ノイズ点である。
DBSCAN(D, eps, MinPts) {
C = 0
for each point P in dataset D {
if P is visited
continue next point
mark P as visited
NeighborPts = regionQuery(P, eps)
ifsizeof(NeighborPts) < MinPts
mark P as NOISE
else {
C = next cluster
expandCluster(P, NeighborPts, C, eps, MinPts)
}
}
}
expandCluster(P, NeighborPts, C, eps, MinPts) {
add P to cluster C
for each point P' in NeighborPts {
if P' is not visited {
mark P' as visited
NeighborPts' = regionQuery(P', eps)
ifsizeof(NeighborPts') >= MinPts
NeighborPts = NeighborPts joined with NeighborPts'
}
if P' is not yet member of any cluster
add P' to cluster C
}
}
regionQuery(P, eps)
return all points within P's eps-neighborhood (including P)
1 2 Ester, Martin; Kriegel, Hans-Peter; Sander, Jörg; Xu, Xiaowei (1996). Simoudis, Evangelos; Han, Jiawei; Fayyad, Usama M. (eds.). A density-based algorithm for discovering clusters in large spatial databases with noise. Proceedings of the Second International Conference on Knowledge Discovery and Data Mining (KDD-96). AAAI Press. pp.226–231. CiteSeerX10.1.1.121.9220. ISBN1-57735-004-9。
↑ Most cited data mining articles according to Microsoft academic search; DBSCAN is on rank 24, when accessed on: 4/18/2010
1 2 3 Campello,Ricardo J. G. B.;Moulavi,Davoud;Zimek,Arthur;Sander,Jörg(2015).“Hierarchical Density Estimates for Data Clustering, Visualization, and Outlier Detection”.ACM Transactions on Knowledge Discovery from Data10(1): 1–51.doi:10.1145/2733381.ISSN15564681.
↑ Sander,Jörg(1998).Generalized Density-Based Clustering for Spatial Data Mining.München:Herbert Utz Verlag.ISBN3-89675-469-6
↑ Campello,R. J. G. B.;Moulavi,D.;Zimek,A.;Sander,J.(2013).“A framework for semi-supervised and unsupervised optimal extraction of clusters from hierarchies”.Data Mining and Knowledge Discovery27(3): 344.doi:10.1007/s10618-013-0311-4.
↑ Kriegel,Hans-Peter;Schubert,Erich;Zimek,Arthur(2016).“The (black) art of runtime evaluation: Are we comparing algorithms or implementations?”.Knowledge and Information Systems.doi:10.1007/s10115-016-1004-2.ISSN0219-1377.
参考文献
Arlia, Domenica; Coppola, Massimo. "Experiments in Parallel Clustering with DBSCAN". Euro-Par 2001: Parallel Processing: 7th International Euro-Par Conference Manchester, UK August 28–31, 2001, Proceedings. Springer Berlin.