de.lmu.ifi.dbs.elki.algorithm.clustering.subspace.clique
Class CLIQUESubspace.CoverageComparator

java.lang.Object
  extended by 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.


Constructor Summary
CLIQUESubspace.CoverageComparator()
           
 
Method Summary
 int compare(CLIQUESubspace<?> s1, CLIQUESubspace<?> s2)
          Compares the two specified CLIQUESubspaces for order.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

CLIQUESubspace.CoverageComparator

public CLIQUESubspace.CoverageComparator()
Method Detail

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 compare
s2 - 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

Release 0.4.0 (2011-09-20_1324)