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, truncate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
get, iter
public DoubleDistanceIntegerDBIDKNNList()
public DoubleDistanceIntegerDBIDKNNList(int k, int size)
k
- K parametersize
- Actual sizepublic int getK()
KNNList
getK
in interface KNNList<DoubleDistance>
@Deprecated public DoubleDistance getKNNDistance()
doubleKNNDistance()
DoubleDistanceKNNList
getKNNDistance
in interface DoubleDistanceKNNList
getKNNDistance
in interface KNNList<DoubleDistance>
public double doubleKNNDistance()
DoubleDistanceKNNList
doubleKNNDistance
in interface DoubleDistanceKNNList
public String toString()
toString
in class DoubleDistanceIntegerDBIDList