de.lmu.ifi.dbs.elki.algorithm.clustering
Class SLINK.CompareByLambda<D extends Distance<D>>
java.lang.Object
de.lmu.ifi.dbs.elki.algorithm.clustering.SLINK.CompareByLambda<D>
- Type Parameters:
D
- Distance type
- All Implemented Interfaces:
- Comparator<DBID>
- Enclosing class:
- SLINK<O,D extends Distance<D>>
private static final class SLINK.CompareByLambda<D extends Distance<D>>
- extends Object
- implements Comparator<DBID>
Order a DBID collection by the lambda value.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
lambda
private final DataStore<D extends Distance<D>> lambda
- Lambda storage
SLINK.CompareByLambda
protected SLINK.CompareByLambda(DataStore<D> lambda)
- Constructor.
- Parameters:
lambda
- Lambda storage
compare
public int compare(DBID id1,
DBID id2)
- Specified by:
compare
in interface Comparator<DBID>