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