Skip to content
Snippets Groups Projects
Commit f35bb75c authored by Jonas Blatt's avatar Jonas Blatt :ant:
Browse files

Don't check including clusters --> if they was equal duplicates was found..

parent ded0a654
No related branches found
No related tags found
No related merge requests found
......@@ -113,19 +113,21 @@ public class SubsumptionRules extends AbstractVerifier {
}
}
// check for subsets, that includes other subsets and remove them
for (int x = 0; x < clusters.size(); x++) {
if (clusters.get(x) != null) {
Set<Value> c1 = clusters.get(x);
for (int y = 0; y < clusters.size(); y++) {
for (int y = x + 1; y < clusters.size(); y++) {
if (clusters.get(y) != null) {
Set<Value> c2 = clusters.get(y);
if (c1.containsAll(c2) && x != y) {
if (c1.containsAll(c2) && c2.containsAll(c1)) {
clusters.set(y, null);
}
}
}
}
}
// recursively search next row for subsumption with all clusters
for (int x = 0; x < clusters.size(); x++) {
if (clusters.get(x) != null) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment