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, truncate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
get, iter
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 String toString()
toString
in class DoubleIntegerDBIDList
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.