예제 #1
0
        public void InitState(List <HCPoint> points)
        {
            State = new();

            List <HCCluster> clusters = HCCluster.ClusterPerPoint(points);
            HCClusterPair    closest  = distanceMatrix.FindClosestPair(
                clusterPairs: HCCluster.AllPairs(clusters),
                metric: Metric.SingleLinkage
                );

            State.Iterations.Add(new HCIteration(
                                     clusters: clusters,
                                     closestPair: closest
                                     ));
        }
예제 #2
0
파일: HCData.cs 프로젝트: lionsoon/HCWpf
 public HCIteration(List <HCCluster> clusters, HCClusterPair closestPair)
 {
     this.Clusters    = clusters;
     this.ClosestPair = closestPair;
 }