diff --git a/elki-clustering/src/main/java/elki/clustering/hierarchical/extraction/ClustersWithNoiseExtraction.java b/elki-clustering/src/main/java/elki/clustering/hierarchical/extraction/ClustersWithNoiseExtraction.java index c999005069..f10e785cec 100644 --- a/elki-clustering/src/main/java/elki/clustering/hierarchical/extraction/ClustersWithNoiseExtraction.java +++ b/elki-clustering/src/main/java/elki/clustering/hierarchical/extraction/ClustersWithNoiseExtraction.java @@ -181,7 +181,7 @@ public Clustering run() { LOG.warning("Could not find a result with exactly " + numCl + " clusters (+ noise), generating " + bestCl + " clusters instead."); } - progress = LOG.isVerbose() ? new FiniteProgress("Performing cluster merges", bestOff, LOG) : null; + progress = LOG.isVerbose() ? new FiniteProgress("Performing cluster merges", bestOff + 1, LOG) : null; Int2IntOpenHashMap leafMap = new Int2IntOpenHashMap(merges.size()); leafMap.defaultReturnValue(-1); ArrayList clusterMembers = new ArrayList<>(merges.size() - bestCl + 2);