lbehnke / hierarchical-clustering-java

Implementation of an agglomerative hierarchical clustering algorithm in Java. Different linkage approaches are supported.
141 stars 79 forks source link

cluster names are not reset for each independent clustering #25

Open barrybecker4 opened 5 years ago

barrybecker4 commented 5 years ago

I don't think globalIndex should be static in ClusterPair. It means that it just keeps getting incremented for every clustering that you do in a single instantiation of a JVM. This will lead to many problems such as:

Instead the cluster indexes should only be global for a single clustering, not across all clusterings. I will try to make a PR.