de.lmu.ifi.dbs.elki.algorithm.clustering
Class SLINK.CompareByLambda<D extends Distance<D>>

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


Field Summary
private  DataStore<D> lambda
          Lambda storage
 
Constructor Summary
protected SLINK.CompareByLambda(DataStore<D> lambda)
          Constructor.
 
Method Summary
 int compare(DBID id1, DBID id2)
           
 
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
 

Field Detail

lambda

private final DataStore<D extends Distance<D>> lambda
Lambda storage

Constructor Detail

SLINK.CompareByLambda

protected SLINK.CompareByLambda(DataStore<D> lambda)
Constructor.

Parameters:
lambda - Lambda storage
Method Detail

compare

public int compare(DBID id1,
                   DBID id2)
Specified by:
compare in interface Comparator<DBID>

Release 0.4.0 (2011-09-20_1324)