
public interface DoubleDistanceKNNHeap extends KNNHeap<DoubleDistance>
| Modifier and Type | Method and Description | 
|---|---|
void | 
add(double distance,
   DBIDRef id)
Add a distance-id pair to the heap unless the distance is too large. 
 | 
void | 
add(Double distance,
   DBIDRef id)
Deprecated.  
 | 
void | 
add(DoubleDistanceDBIDPair e)
Add a distance-id pair to the heap unless the distance is too large. 
 | 
void | 
add(DoubleDistance dist,
   DBIDRef id)
Deprecated. 
 
if you know your distances are double-valued, you should be
             using the primitive type. 
 | 
double | 
doubleKNNDistance()
Get the distance to the k nearest neighbor, or maxdist otherwise. 
 | 
DoubleDistance | 
getKNNDistance()
Deprecated. 
 
if you know your distances are double-valued, you should be
             using the primitive type. 
 | 
DoubleDistanceDBIDPair | 
peek()
Peek at the largest element in the heap. 
 | 
DoubleDistanceDBIDPair | 
poll()
Poll the largest element from the heap. 
 | 
DoubleDistanceKNNList | 
toKNNList()
Serialize to a  
KNNList. | 
void add(double distance,
       DBIDRef id)
distance - Distance valueid - ID number@Deprecated void add(Double distance, DBIDRef id)
distance - Distance valueid - ID numbervoid add(DoubleDistanceDBIDPair e)
e - Existing distance pair@Deprecated void add(DoubleDistance dist, DBIDRef id)
add in interface KNNHeap<DoubleDistance>dist - Distance valueid - ID numberdouble doubleKNNDistance()
@Deprecated DoubleDistance getKNNDistance()
getKNNDistance in interface KNNHeap<DoubleDistance>DoubleDistanceDBIDPair poll()
KNNHeapKNNHeap.toKNNList().poll in interface KNNHeap<DoubleDistance>DoubleDistanceDBIDPair peek()
KNNHeappeek in interface KNNHeap<DoubleDistance>DoubleDistanceKNNList toKNNList()
KNNHeapKNNList. This empties the heap!toKNNList in interface KNNHeap<DoubleDistance>