
public interface DoubleDistanceKNNHeap extends KNNHeap<DoubleDistance>
| Modifier and Type | Method and Description |
|---|---|
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.
|
double |
insert(double distance,
DBIDRef id)
Add a distance-id pair to the heap unless the distance is too large.
|
void |
insert(Double distance,
DBIDRef id)
Deprecated.
|
void |
insert(DoubleDistanceDBIDPair e)
Add a distance-id pair to the heap unless the distance is too large.
|
void |
insert(DoubleDistance dist,
DBIDRef id)
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. |
double insert(double distance,
DBIDRef id)
distance - Distance valueid - ID number@Deprecated void insert(Double distance, DBIDRef id)
distance - Distance valueid - ID numbervoid insert(DoubleDistanceDBIDPair e)
e - Existing distance pair@Deprecated void insert(DoubleDistance dist, DBIDRef id)
insert 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>