Input: The dataset . |
Output: Candidate set . |
(1) Initial candidate set ; |
(2) Construct the Gram matrix based on (3); |
(3) Compute vector with ; |
(4) Determine a threshold ; |
(5) for all data points in |
(6) if data point with local density , |
(7) Mark data point as a candidate initial center, that is ; |
(8) end if |
(9) end for |