use of de.lmu.ifi.dbs.elki.evaluation.clustering.ClusterContingencyTable in project elki by elki-project.
the class ClusteringAdjustedRandIndexSimilarityFunction method distance.
@Override
public double distance(Clustering<?> o1, Clustering<?> o2) {
ClusterContingencyTable ct = new ClusterContingencyTable(false, true);
ct.process(o1, o2);
return 1. - ct.getPaircount().adjustedRandIndex();
}
use of de.lmu.ifi.dbs.elki.evaluation.clustering.ClusterContingencyTable in project elki by elki-project.
the class ClusteringAdjustedRandIndexSimilarityFunction method similarity.
@Override
public double similarity(Clustering<?> o1, Clustering<?> o2) {
ClusterContingencyTable ct = new ClusterContingencyTable(false, true);
ct.process(o1, o2);
return ct.getPaircount().adjustedRandIndex();
}
use of de.lmu.ifi.dbs.elki.evaluation.clustering.ClusterContingencyTable in project elki by elki-project.
the class ClusteringRandIndexSimilarityFunction method similarity.
@Override
public double similarity(Clustering<?> o1, Clustering<?> o2) {
ClusterContingencyTable ct = new ClusterContingencyTable(false, true);
ct.process(o1, o2);
return ct.getPaircount().randIndex();
}
use of de.lmu.ifi.dbs.elki.evaluation.clustering.ClusterContingencyTable in project elki by elki-project.
the class ClusteringBCubedF1SimilarityFunction method similarity.
@Override
public double similarity(Clustering<?> o1, Clustering<?> o2) {
ClusterContingencyTable ct = new ClusterContingencyTable(false, true);
ct.process(o1, o2);
return ct.getBCubed().f1Measure();
}
use of de.lmu.ifi.dbs.elki.evaluation.clustering.ClusterContingencyTable in project elki by elki-project.
the class ClusteringFowlkesMallowsSimilarityFunction method distance.
@Override
public double distance(Clustering<?> o1, Clustering<?> o2) {
ClusterContingencyTable ct = new ClusterContingencyTable(false, true);
ct.process(o1, o2);
return 1. - ct.getPaircount().fowlkesMallows();
}
Aggregations