Input : Location Data : LD , Parameter : Minpts
Output :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;
Input : Location Data : LD , Parameter : MinptsOutput :Cluster labels of every level in the hierarchyK = Minpts;KforEps = 1 ;Eps = epsilon(LD,KforEps); //Calculate the Eps with the Location Data a