|
Algorithm 1. DBSCAN procedure |
|
Input: a set of objects S
|
|
Output: a cluster of objects C
|
| Set all the objects in S to be unprocessed, ; |
|
while there is an unprocessed object in S
|
| Choose an arbitrary unprocessed object and calculate ; |
| if
|
| Build a new cluster E containing the only object p and add E into C; |
| ; |
| while there exist unprocessed or noise objects in Child
|
| for each unprocessed or noise object
|
| Insert q into E and compute ; |
| if
|
| ; |
| end if
|
| end for
|
| end while
|
| else
|
| Set the object p to be noise; |
| end if
|
| end while |