public void Create() { ClusterList.Clear(); HyperClusterList.Clear(); ItemToClusterMap.Clear(); ClusterToHyperClusterMap.Clear(); for (int i = 0; i < FeatureItemList.Count; i++) { AssignCluster(FeatureItemList[i]); } //Get items assigned to hyperClusters for (int i = 0; i < HyperClusterList.Count; i++) { HyperClusterList[i].GetHyperClusterItemList(); } }
public void Create(ICollection <FeatureItem> itemCollection) { FeatureItemList.AddRange(itemCollection); ClusterList.Clear(); HyperClusterList.Clear(); ItemToClusterMap.Clear(); ClusterToHyperClusterMap.Clear(); for (int i = 0; i < FeatureItemList.Count; i++) { FeatureItemList[i].Id = i; AssignCluster(FeatureItemList[i]); } //Get items assigned to hyperClusters for (int i = 0; i < HyperClusterList.Count; i++) { HyperClusterList[i].GetHyperClusterItemList(); } }