
public class DoubleDistanceIntegerDBIDKNNList extends DoubleDistanceIntegerDBIDList implements DoubleDistanceKNNList
| Modifier and Type | Field and Description |
|---|---|
(package private) int |
k
The k value this list was generated for.
|
dists, ids, size| Constructor and Description |
|---|
DoubleDistanceIntegerDBIDKNNList()
Constructor.
|
DoubleDistanceIntegerDBIDKNNList(int k,
int size)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
double |
doubleKNNDistance()
Get the kNN distance as double value.
|
int |
getK()
Get the K parameter (note: this may be less than the size of the list!)
|
DoubleDistance |
getKNNDistance()
Deprecated.
Since you know this is a double distance heap, use
doubleKNNDistance() |
String |
toString() |
add, add, add, addInternal, clear, contains, get, getDoubleDistance, grow, isEmpty, iter, reverse, size, sort, truncateclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitget, iterpublic DoubleDistanceIntegerDBIDKNNList()
public DoubleDistanceIntegerDBIDKNNList(int k,
int size)
k - K parametersize - Actual sizepublic int getK()
KNNListgetK in interface KNNList<DoubleDistance>@Deprecated public DoubleDistance getKNNDistance()
doubleKNNDistance()DoubleDistanceKNNListgetKNNDistance in interface DoubleDistanceKNNListgetKNNDistance in interface KNNList<DoubleDistance>public double doubleKNNDistance()
DoubleDistanceKNNListdoubleKNNDistance in interface DoubleDistanceKNNListpublic String toString()
toString in class DoubleDistanceIntegerDBIDList