Esempio n. 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
                                     ));
        }
Esempio n. 2
0
 public HCIteration(List <HCCluster> clusters, HCClusterPair closestPair)
 {
     this.Clusters    = clusters;
     this.ClosestPair = closestPair;
 }