Research Article
A Fast Density Peak Clustering Method with Autoselect Cluster Centers
Algorithm 2
Select cluster centers and determine core group sample labels.
(1) | Input: Core set , Group set , | (2) | Output: Center set , Cluster set | (3) | Create set | (4) | While exist in do | (5) | / Merge all core groups / | (6) | | (7) | For each sample in do | (8) | / When a core group is added to a cluster or a cluster is created, the transitivity between the remaining core groups and the cluster is judged / | (9) | If exist then | (10) | / transitivity judgment / | (11) | | (12) | | (13) | | (14) | Break | (15) | End if | (16) | End for | (17) | If then | (18) | / group is not transitive to any existing label group / | (19) | Create new cluster () | (20) | | (21) | | (22) | | (23) | End if | (24) | End while |
|