
public class DoubleIntegerDBIDKNNList extends DoubleIntegerDBIDList implements IntegerDBIDKNNList
| 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 maxdist otherwise.
|
String |
toString() |
add, add, addInternal, clear, contains, get, grow, isEmpty, iter, remove, removeSwap, reverse, size, sort, swap, truncateclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitget, iterpublic DoubleIntegerDBIDKNNList()
public DoubleIntegerDBIDKNNList(int k,
int size)
k - K parametersize - Actual sizepublic int getK()
KNNListpublic double getKNNDistance()
KNNListgetKNNDistance in interface KNNListpublic String toString()
toString in class DoubleIntegerDBIDListCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.