class DoubleIntegerDBIDKNNList extends DoubleIntegerDBIDArrayList implements IntegerDBIDKNNList
DoubleDBIDList.Consumer
Modifier and Type | Field and Description |
---|---|
(package private) int |
k
The k value this list was generated for.
|
dists, ids, size
Constructor and Description |
---|
DoubleIntegerDBIDKNNList()
Constructor.
|
DoubleIntegerDBIDKNNList(int k,
int size)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getK()
Get the K parameter (note: this may be less than the size of the list!)
|
double |
getKNNDistance()
Get the distance to the k nearest neighbor, or infinity otherwise.
|
java.lang.String |
toString() |
add, add, addInternal, assignVar, clear, contains, doubleValue, grow, iter, remove, removeSwap, reverse, size, slice, sort, swap, truncate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
subList
iter, slice
assignVar, doubleValue, forEachDouble, size
public DoubleIntegerDBIDKNNList()
public DoubleIntegerDBIDKNNList(int k, int size)
k
- K parametersize
- Actual sizepublic int getK()
KNNList
public double getKNNDistance()
KNNList
getKNNDistance
in interface KNNList
public java.lang.String toString()
toString
in class DoubleIntegerDBIDArrayList
Copyright © 2019 ELKI Development Team. License information.