de.lmu.ifi.dbs.elki.utilities.datastructures.heap
Class KNNHeap.Comp<D extends Distance<D>>

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.utilities.datastructures.heap.KNNHeap.Comp<D>
All Implemented Interfaces:
Comparator<DistanceResultPair<D>>
Enclosing class:
KNNHeap<D extends Distance<D>>

public static class KNNHeap.Comp<D extends Distance<D>>
extends Object
implements Comparator<DistanceResultPair<D>>

Comparator to use.


Constructor Summary
KNNHeap.Comp()
           
 
Method Summary
 int compare(DistanceResultPair<D> o1, DistanceResultPair<D> o2)
           
 
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

KNNHeap.Comp

public KNNHeap.Comp()
Method Detail

compare

public int compare(DistanceResultPair<D> o1,
                   DistanceResultPair<D> o2)
Specified by:
compare in interface Comparator<DistanceResultPair<D extends Distance<D>>>

Release 0.4.0 (2011-09-20_1324)