public static class KNN.KNNObjects extends
Constructor and Description |
---|
KNN.KNNObjects(int k) |
Modifier and Type | Method and Description |
---|---|
boolean |
insert(KNN.TextWithDistance newElement) |
protected boolean |
lessThan(java.lang.Object a,
java.lang.Object b)
Keep elements sorted by distance in descending order (Max heap)
|
protected boolean lessThan(java.lang.Object a, java.lang.Object b)
public boolean insert(KNN.TextWithDistance newElement)