'update'
[epclust.git] / epclust / R / clustering.R
index 077becf..42e894c 100644 (file)
@@ -15,6 +15,7 @@ clusteringTask = function(K1, K2, WER, nb_series_per_chunk, indices_tasks, ncore
                        indices_workers[[i]] = indices_clust[(nb_series_per_chunk*(i-1)+1):upper_bound]
                }
                indices_clust = parallel::parLapply(cl, indices_workers, clusterChunk, K1, K2*(WER=="mix"))
+               # TODO: soft condition between K2 and K1, before applying final WER step
                if ((WER=="end" && length(indices_clust)==K1) || (WER=="mix" && length(indices_clust)==K2))
                        break
        }