de.lmu.ifi.dbs.elki.algorithm.clustering.subspace.clique
Class CLIQUESubspace.CoverageComparator
java.lang.Object
de.lmu.ifi.dbs.elki.algorithm.clustering.subspace.clique.CLIQUESubspace.CoverageComparator
- All Implemented Interfaces:
- Comparator<CLIQUESubspace<?>>
- Enclosing class:
- CLIQUESubspace<V extends NumberVector<V,?>>
public static class CLIQUESubspace.CoverageComparator
- extends Object
- implements Comparator<CLIQUESubspace<?>>
A partial comparator for CLIQUESubspaces based on their coverage. The
CLIQUESubspaces are reverse ordered by the values of their coverage.
Note: this comparator provides an ordering that is inconsistent with
equals.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CLIQUESubspace.CoverageComparator
public CLIQUESubspace.CoverageComparator()
compare
public int compare(CLIQUESubspace<?> s1,
CLIQUESubspace<?> s2)
- Compares the two specified CLIQUESubspaces for order. Returns a negative
integer, zero, or a positive integer if the coverage of the first
subspace is greater than, equal to, or less than the coverage of the
second subspace. I.e. the subspaces are reverse ordered by the values of
their coverage.
Note: this comparator provides an ordering that is inconsistent with
equals.
- Specified by:
compare
in interface Comparator<CLIQUESubspace<?>>
- Parameters:
s1
- the first subspace to compares2
- the second subspace to compare
- Returns:
- a negative integer, zero, or a positive integer if the coverage
of the first subspace is greater than, equal to, or less than the
coverage of the second subspace