伪代码

来源:互联网 发布:数据转发装置英文翻译 编辑:程序博客网 时间:2024/04/27 22:49
Input : Location Data : LD , Parameter : MinptsOutput :Cluster labels of every level in the hierarchy K = Minpts; KforEps = 1 ; Eps = epsilon(LD,KforEps); //Calculate the Eps with the Location                                                //Data and corresponding MinPts ClusterLabels = dbscan(LD,K,Eps);//Call DBSCAN to get the                                   //cluster label of every pattern ClusterLabelContainer.push( ClusterLabels  );//Store while ~IsAllLabelTheSame( ClusterLabels  )      KforEps = KforEps + 1;     Eps = epsilon(LD,KforEps);     ClusterLabels = dbscan(LD,K,Eps);     if ClusterLabels.compare( ClusterLabelContainer.back() ) ~= TheSame // wipe off  the redundant        ClusterLabelContainer.push( ClusterLabels  );     end if end while return ClusterLabelContainer;