Package elki.index.laesa
Class LAESA.LAESAKNNByDBIDSearcher
- java.lang.Object
-
- elki.index.laesa.LAESA.LAESAKNNSearcher<DBIDRef>
-
- elki.index.laesa.LAESA.LAESAKNNByDBIDSearcher
-
- All Implemented Interfaces:
KNNSearcher<DBIDRef>
public class LAESA.LAESAKNNByDBIDSearcher extends LAESA.LAESAKNNSearcher<DBIDRef>
KNN searcher by DBID class- Author:
- Robert Gehde
-
-
Field Summary
Fields Modifier and Type Field Description private DBIDRef
query
Query object-
Fields inherited from class elki.index.laesa.LAESA.LAESAKNNSearcher
maxnc
-
-
Constructor Summary
Constructors Constructor Description LAESAKNNByDBIDSearcher(int k)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KNNList
getKNN(DBIDRef query, int k)
Get the k nearest neighbors for a particular object.protected double
queryDistance(DBIDRef p)
Compute the distance to a candidate object.-
Methods inherited from class elki.index.laesa.LAESA.LAESAKNNSearcher
laesaKNNSearch
-
-
-
-
Field Detail
-
query
private DBIDRef query
Query object
-
-
Method Detail
-
getKNN
public KNNList getKNN(DBIDRef query, int k)
Description copied from interface:KNNSearcher
Get the k nearest neighbors for a particular object.- Parameters:
query
- query objectk
- Number of neighbors requested- Returns:
- neighbors
-
queryDistance
protected double queryDistance(DBIDRef p)
Description copied from class:LAESA.LAESAKNNSearcher
Compute the distance to a candidate object.- Specified by:
queryDistance
in classLAESA.LAESAKNNSearcher<DBIDRef>
- Parameters:
p
- Object- Returns:
- Distance
-
-